数字整除(python代码) 摘要:def judge(x): c = len(x) x = list(x) e = int(x[c-1]) del(x[c-1]) x = '& 题解列表 2023年01月12日 0 点赞 0 评论 157 浏览 评分:0.0
数字整除(水题但投机取巧) 摘要:```c #include int main(){ char s[200]; int i,sum; while(scanf("%s",s)&&(s[0]!='0')){ s…… 题解列表 2023年01月11日 2 点赞 0 评论 329 浏览 评分:9.9
1074: 数字整除 摘要: #include #include using namespace std; int main() { string s; in…… 题解列表 2022年10月06日 1 点赞 0 评论 511 浏览 评分:9.9
1074: 数字整除 摘要:```cpp #include #include using namespace std; int main() { char m[1050]; int h; …… 题解列表 2022年08月17日 0 点赞 0 评论 371 浏览 评分:9.9
请各位大神帮我看看哪里错咯 谢谢了 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { unsigned long long a[40]; int i,n,g,y; for(i=…… 题解列表 2022年05月11日 0 点赞 0 评论 300 浏览 评分:0.0
不用input,用标准输入来输入 摘要:解题思路:一个数%10获得个位上的数,一个数//10获得除了个位上的数注意事项:参考代码:import syswhile True: s_in=sys.stdin contenir=s_i…… 题解列表 2022年05月07日 0 点赞 0 评论 518 浏览 评分: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 评论 258 浏览 评分:0.0
1074: 数字整除 摘要:解题思路:(1)一开始的思路是写一个大整数类,重载 '-' 和 '/' 运算符,然后按照题目来。但这属于大炮打蚊子了。(2)然后看了优质题解发现,题目给的判断原理似乎并…… 题解列表 2022年04月17日 0 点赞 0 评论 455 浏览 评分:9.9
还不会的看过来 摘要:解题思路:注意事项:参考代码:a = []while True: s = input() if s == '0': break else: …… 题解列表 2022年04月03日 0 点赞 0 评论 396 浏览 评分:0.0
分类讨论注意初始参数还原为0 摘要:解题思路:利用while循环实现持续输入,在有题目条件写出判断式子注意事项:参考代码:while True: n=int(input()) if n==0: break …… 题解列表 2022年04月01日 0 点赞 0 评论 285 浏览 评分:0.0