调用函数及封装性解题 摘要:解题思路:def f(a): b=(a%10)*5 a=a//10 if (a-b)%17==0: print("1") else:print("0")while…… 题解列表 2024年11月27日 0 点赞 0 评论 637 浏览 评分:9.9
大数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数字整除(无脑四行版) 提问:直接对17求余可以吗?```pythonwhileTrue:n=int(input())ifn==0:breakelse:print('1'ifn%17==0else'0')``` 题解列表 2023年12月06日 0 点赞 0 评论 577 浏览 评分:9.9
1074: 数字整除 - Python 摘要:解题思路: 1、将输出的字符作为string类型,不转变为int. 2、将输入的数字(string类型)利用list()转变为数组,利用切片得到对应的数组。 3、将数组转为int,进…… 题解列表 2023年10月24日 0 点赞 0 评论 558 浏览 评分:0.0
有点浪费时间,不过稳定通过 摘要:参考代码:def fun(n): min_num=int(n[-1]) n=list(n) del n[-1] new_n='' for i in n: …… 题解列表 2023年04月25日 0 点赞 0 评论 539 浏览 评分:9.9
数字整除——17的倍数 解题思路:不知道为什么,老是报错说是输入有问题,可能不能用input()吧,参考了一下其他作者的代码,终于成功了,我是新手,还有好多东西不懂,慢慢来,发个题解记录一下吧注意事项:1、那个sys.stdin后面没有()2、要除掉\n用i=i.replace('\n', 题解列表 2023年03月17日 0 点赞 0 评论 534 浏览 评分:0.0