还不会的看过来 摘要:解题思路:注意事项:参考代码:a = []while True: s = input() if s == '0': break else: …… 题解列表 2022年04月03日 0 点赞 0 评论 707 浏览 评分:0.0
大数Python写 摘要:参考代码:while True: n=int(input()) if n==0: break else: if n%17==0: 题解列表 2024年10月17日 0 点赞 0 评论 686 浏览 评分:0.0
python优势-自带高精度 摘要:参考代码:while True: n = int(input()) if n == 0: break if n % 17 == 0:   题解列表 2024年04月23日 0 点赞 0 评论 536 浏览 评分:0.0
python简单易懂 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) if n!=0: c = n%10 …… 题解列表 2024年02月08日 0 点赞 0 评论 533 浏览 评分:0.0
1074: 数字整除 ```pythonn=int(input())#初始值whilen!=0:#n=0时停止lest=n//10if(lest-(n%10)*5)%17==0:print('1')else:print('0')n=int(input())``` 题解列表 2023年12月20日 0 点赞 0 评论 328 浏览 评分:0.0
1074: 数字整除 - Python 摘要:解题思路: 1、将输出的字符作为string类型,不转变为int. 2、将输入的数字(string类型)利用list()转变为数组,利用切片得到对应的数组。 3、将数组转为int,进…… 题解列表 2023年10月24日 0 点赞 0 评论 558 浏览 评分:0.0
数字整除——17的倍数 解题思路:不知道为什么,老是报错说是输入有问题,可能不能用input()吧,参考了一下其他作者的代码,终于成功了,我是新手,还有好多东西不懂,慢慢来,发个题解记录一下吧注意事项:1、那个sys.stdin后面没有()2、要除掉\n用i=i.replace('\n', 题解列表 2023年03月17日 0 点赞 0 评论 534 浏览 评分: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 评论 387 浏览 评分:0.0
不用input,用标准输入来输入 摘要:解题思路:一个数%10获得个位上的数,一个数//10获得除了个位上的数注意事项:参考代码:import syswhile True: s_in=sys.stdin contenir=s_i…… 题解列表 2022年05月07日 0 点赞 0 评论 775 浏览 评分:0.0