数字整除(水题但投机取巧) 摘要:```c #include int main(){ char s[200]; int i,sum; while(scanf("%s",s)&&(s[0]!='0')){ s…… 题解列表 2023年01月11日 2 点赞 0 评论 197 浏览 评分:9.9
1074: 数字整除 摘要: #include #include using namespace std; int main() { string s; in…… 题解列表 2022年10月06日 1 点赞 0 评论 370 浏览 评分:9.9
1074: 数字整除 摘要:```cpp #include #include using namespace std; int main() { char m[1050]; int h; …… 题解列表 2022年08月17日 0 点赞 0 评论 238 浏览 评分:9.9
请各位大神帮我看看哪里错咯 谢谢了 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { unsigned long long a[40]; int i,n,g,y; for(i=…… 题解列表 2022年05月11日 0 点赞 0 评论 172 浏览 评分:0.0
不用input,用标准输入来输入 摘要:解题思路:一个数%10获得个位上的数,一个数//10获得除了个位上的数注意事项:参考代码:import syswhile True: s_in=sys.stdin contenir=s_i…… 题解列表 2022年05月07日 0 点赞 0 评论 382 浏览 评分:0.0
1074: 数字整除 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int maxn=100+20;char s[maxn];int mai…… 题解列表 2022年05月02日 0 点赞 0 评论 143 浏览 评分:0.0
1074: 数字整除 摘要:解题思路:(1)一开始的思路是写一个大整数类,重载 '-' 和 '/' 运算符,然后按照题目来。但这属于大炮打蚊子了。(2)然后看了优质题解发现,题目给的判断原理似乎并…… 题解列表 2022年04月17日 0 点赞 0 评论 298 浏览 评分:9.9
还不会的看过来 摘要:解题思路:注意事项:参考代码:a = []while True: s = input() if s == '0': break else: …… 题解列表 2022年04月03日 0 点赞 0 评论 241 浏览 评分:0.0
分类讨论注意初始参数还原为0 摘要:解题思路:利用while循环实现持续输入,在有题目条件写出判断式子注意事项:参考代码:while True: n=int(input()) if n==0: break …… 题解列表 2022年04月01日 0 点赞 0 评论 159 浏览 评分:0.0
啊啊啊!我终于写出来了,奶奶的老是细节出问题。 摘要:解题思路:将长整数以字符串形式处理,大概思路就是将字符串最后一位乘5消去,一直递减到只剩三位数再判断是否是17的倍数。注意事项:参考代码:#include <iostream>using namesp…… 题解列表 2022年03月31日 0 点赞 0 评论 355 浏览 评分:9.9