数字整除。。。大数处理方法 摘要:解题思路:大数处理方法:1) 一个字符ch要转化为数字时,应该用这个字符减去'0'。 ch - '0'2) 一个数字num要转化为字符时,应该用这个数字加上'…… 题解列表 2022年02月14日 0 点赞 0 评论 367 浏览 评分:0.0
分类讨论注意初始参数还原为0 摘要:解题思路:利用while循环实现持续输入,在有题目条件写出判断式子注意事项:参考代码:while True: n=int(input()) if n==0: break …… 题解列表 2022年04月01日 0 点赞 0 评论 160 浏览 评分:0.0
还不会的看过来 摘要:解题思路:注意事项:参考代码:a = []while True: s = input() if s == '0': break else: …… 题解列表 2022年04月03日 0 点赞 0 评论 241 浏览 评分: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 评论 145 浏览 评分:0.0
不用input,用标准输入来输入 摘要:解题思路:一个数%10获得个位上的数,一个数//10获得除了个位上的数注意事项:参考代码:import syswhile True: s_in=sys.stdin contenir=s_i…… 题解列表 2022年05月07日 0 点赞 0 评论 382 浏览 评分:0.0
请各位大神帮我看看哪里错咯 谢谢了 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { unsigned long long a[40]; int i,n,g,y; for(i=…… 题解列表 2022年05月11日 0 点赞 0 评论 174 浏览 评分:0.0
数字整除(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 评论 78 浏览 评分:0.0
超大数字整除问题--大数求余算法 摘要:解题思路:如果按照问题中给出的解题思路进行解题,个人水平有限,只能写出满足一半例程的程序,另外的一半例程可能是由于数据太大了,使用stoi()函数与stringstream均无法正确地将字符串转换到整…… 题解列表 2023年03月02日 0 点赞 0 评论 140 浏览 评分:0.0
数字整除——17的倍数 摘要:解题思路:不知道为什么,老是报错说是输入有问题,可能不能用input()吧,参考了一下其他作者的代码,终于成功了,我是新手,还有好多东西不懂,慢慢来,发个题解记录一下吧注意事项:1、那个sys.std…… 题解列表 2023年03月17日 0 点赞 0 评论 163 浏览 评分:0.0
大数整除:竖式法计算 摘要:  #include #include #include …… 题解列表 2023年03月22日 0 点赞 0 评论 184 浏览 评分:0.0