文章

7

粉丝

254

获赞

2

访问

76.7k

头像
蓝翔计算机考研跨考新东方厨师,然后用计算机操作挖掘机炒菜 :P
P1626 上海交通大学2018年机试题
发布于2020年4月10日 14:39
阅读数 9.2k

#include <stdio.h>
#include <string.h>
using namespace std;
int main(){
    int n;
    while(scanf("%d", &n) != EOF){
        int ans = 0;
        while(n){
            n = n / 5;
            ans = ans + n;
        }
        printf("%d\n", ans);
    }
    return 0;
}

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发