题解列表

筛选

内码对称问题

摘要:解题思路:注意事项:参考代码:sum1 = 0try:    while True:        x=int(input())        y=format(x,'b')     ……

自定义函数处理素数

摘要:解题思路:傻瓜解法,遍历2到n注意事项:参考代码:def sushu(n): for i in range(2,n) :    if n%i==0:         print('not pr……

贪心+大数取余

摘要:解题思路:注意事项:参考代码:import osimport sys# 请在此输入您的代码"""了解进制的规律,需要注意A>=B"""# 输入数据n=eval(input())ma=eval(inpu……

1480: 模拟计算器

摘要:解题思路:注意事项:参考代码:while True:    try:        a, b, c = map(str, input().split())        if (c == '+……

1118: Tom数(python)

摘要:解题思路:注意事项:补充大佬解法,要加上except EOFError才能运行通过参考代码:while True:    try:        print(sum([int(i) for i in ……