Sss+
Sss+
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Sss+的博客
WT......
全部文章
/ 题解
(共14篇)
题解 | #[NOIP2008]ISBN号码#
s=input() r=s.replace('-', '') t=0 for indx, i in enumerate(r[:-1]): t+=int(i)*(indx+1) rcode=t%11 rcode = 'X' if rcode==10 else str(rcode) if rc...
Python3
2022-03-08
0
265
题解 | #牛牛的二三七整除#
s=int(input()) ss=[] for i in [2,3,7]: if s%i==0: ss.append(i) if len(ss)==0: print('n') else: print(''.join(str(i)+' ' for i in s...
Python3
2022-03-08
1
249
题解 | #时间转换#
from datetime import datetime s=int(input()) dt_o = datetime.fromtimestamp(s) print(dt_o.hour, dt_o.minute, dt_o.second)
Python3
2022-03-07
0
254
题解 | #按照格式输入并交换输出#
from re import match s = input() p = match("a=(-?\d+),b=(-?\d+)", s) print(f"a={p.group(2)},b={p.group(1)}")
Python3
2022-03-07
0
376
首页
上一页
1
2
下一页
末页