楼主,第一题怎么做的,为什么我下面的代码AC只有73% #include <iostream> using namespace std; int main() {     int n;     cin >> n;     long long res = 1;     for(int i = 1; i <= n; i++){         res *= i;         cout << res << endl;         while(res % 10 == 0) res /= 10;         res %=10;         cout << res << endl;     }     cout << res << endl;     return 0; }
点赞 5

相关推荐

Cons_W:我9本的,同样找不到。感觉是岗位太少的问题,可能12月份没多少岗位的。
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务