2 条题解
-
0
#include<bits/stdc++.h> using namespace std ; int main ( ) { int A , b = 0 ; int count = 0 ; cin >> A ; if ( A % 5 == 0 ) { 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
- 标签
- 递交数
- 41
- 已通过
- 4
- 上传者