2 条题解

  • 0
    @ 2026-3-18 18:03:20

    #include<bits/stdc++.h> using namespace std;

    const int N=1e5+5;

    int main(){ int A; int count =0; cin >> A; if(A % 10 == 5){ while(1){ if(A % 5 == 0 ){ count++; A /= 5; } else { break; } } cout << count << endl; } else{ while(A){ if(A % 10 == 0){ count ++; } A /= 10 ; } cout << count << endl; } return 0; }

    信息

    ID
    3493
    时间
    1000ms
    内存
    256MiB
    难度
    9
    标签
    递交数
    39
    已通过
    3
    上传者