Seechuan
Seechuan
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Seechuan的博客
全部文章
/ 题解
(共4篇)
题解 | #[NOIP1999]回文数#
dic={'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,\ 'A':10,'B':11,'C':12,'D':13,'E':14,'F':15} dic2={0:'0',1:'1',2:'2',3:'3',4:'4',...
Python3
2022-03-27
1
400
题解 | #牛牛的数组匹配#
n=[int(i) for i in input().split()] a=[int(i) for i in input().split()] b=[int(i) for i in input().split()] s=sum(a) min=abs(sum(b)-s) idx=[0,n[1]] ...
Python3
2022-03-27
3
454
题解 | #进制A+B#
自己写转换函数: dic={'A':10,'B':11,'C':12,'D':13,'E':14,'F':15,\ '1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'0':0} def decimal(x,n): resu...
Python3
2022-03-26
2
353
题解 | #缩短二进制#
x=1234 print('{0:#o}'.format(x).replace('0o','0')+\ ' {0:#x}'.format(x).upper())
Python3
2022-03-26
2
385