canwen
canwen
全部文章
分类
题解(41)
归档
标签
去牛客网
登录
/
注册
canwen的博客
全部文章
(共50篇)
题解 | #列表的长度#
a=input().split() print(len(a))
Python3
2022-08-01
0
177
题解 | #生成数字列表#
a=input().split() lis=[] for i in a: lis.append(int(i)) print(lis)
Python3
2022-08-01
0
245
题解 | #派对名单#
guest_list=['Niuniu','Niu Ke Le'] for i in guest_list: print("%s, do you want to come to my celebration party?"%(i)) g...
Python3
2022-07-26
0
202
题解 | #发送offer#
offer_list=['Allen','Tom'] for i in offer_list: print("%s, you have passed our interview and will soon become a member of ou...
Python3
2022-07-26
0
161
题解 | #计算器#
x=int(input()) y=int(input()) # print(x+y) # print(x-y) # print(x*y) # print(int(x/y)) # print(x%y) print('{...
Python3
2022-07-25
0
204
题解 | #格式化输出(二)#
1、capitalize() 将字符串的首字母大写,其余字母小写 2、title() 将字符串中每个单词的首字母大写,其余字母小写,非字母后的第一个字母将转换为大写字母 3、upper()&lower() 全部单词大写或小写 ''' a=inp...
Python3
2022-07-25
0
189
题解 | #牛牛的短信#
#2022/6/14 13:40 n=int(input()) lis=list(map(int,input().split())) sum1=0 sum2=0 count1=0 count2=0 for i in lis: if i>60: &nbs...
Python3
2022-06-14
0
261
题解 | #小乐乐计算函数#
#2022/6/14 10:27 a,b,c=map(int,input().split()) max1=max(a+b,b,c) max2=max(a,b+c,c) max3=max(a,b,b+c) m=max1/(max2+max3) print("{:.2f}".format(m))
Python3
2022-06-14
3
300
题解 | #登录验证#
#2022/6/13 14:23 a,b=map(str,input().split()) # print(a,b) # print(type(a)) if a=='admin' and b=='admin': print("Login Success!") else: ...
Python3
2022-06-13
0
192
题解 | #[NOIP2018]标题统计#
#2022/6/13 14:11 n=input() a=b=c=d=0 for i in n: if ord('a')<=ord(i)<=ord('z') or ord('A')<=ord(i)<=ord('Z'): ...
Python3
2022-06-13
0
231
首页
上一页
1
2
3
4
5
下一页
末页