抱朴真
抱朴真
全部文章
分类
题解(6)
归档
标签
去牛客网
登录
/
注册
抱朴真的博客
python
全部文章
(共4篇)
题解 | #[NOIP2010]数字统计#
x,y=map(int,input().split(' ')) s='' m=0 for i in range(x,y+1): s+=str(i) for j in s: if j=='2': m+=1 print(m)
Python3
2022-05-26
0
245
题解 | #牛牛的digit#
def f(x,i): z=x%(10**i) return z x,i=input().split(' ') x,i=map(int,(x,i)) print(f(x,i))
Python3
2022-05-26
1
338
题解 | #牛牛的Ackmann#
此题有错:我查了一下,题目中的m n序有错,我将错就错吧。 sys.setrecursionlimit(1000000) def ack(m, n): if m == 0: n += 1 return n if m > 0 and n == 0...
Python3
2022-05-25
3
458
题解 | #井字棋#
我觉得我的做法好理解 js = 0 aa = [[0] * 3] * 3 #定义数组 for i in range(3): a = input() aa[i] = a.split(' ') for i in range(3): c = d=e=f='' ...
Python3
2022-05-18
2
283