canwen
canwen
全部文章
题解
归档
标签
去牛客网
登录
/
注册
canwen的博客
全部文章
/ 题解
(共34篇)
题解 | #[NOIP2008]ISBN号码#
#2022/5/19 15:05 a,b,c,d=map(str,input().split("-")) sbm=(int(a)*1+int(b[0])*2+int(b[1])*3+int(b[2])*4+int(c[0])*5+int(c[1])*6+int(c[2])*7+int(c[3])*8...
Python3
2022-05-19
0
261
题解 | #获得月份天数#
#2022/5/19 14:38 #先判断闰年和平年2月份的区别 while 1: try: a,b=map(int,input().split()) if (...
Python3
2022-05-19
0
233
题解 | #牛牛的计划#
#2022/5/19 10:31 y,***p(int,input().split()) y1,m1,d1=map(int,input().split()) #不同年:查询年份y1>计划年份y, yes #同年不同月:查询月份m1>计划月份m,yes #同年同月不同日:查询日d1>...
Python3
2022-05-19
0
218
题解 | #HTTP状态码#
#2022/05/18 21:40 # 单行输入分支练习 # statuscode=int(input()) # if statuscode==200: # print("OK") # elif statuscode==202: # &...
Python3
2022-05-18
0
217
题解 | #牛牛的金币#
#2022/5/18 16:15 x,y=map(int,input().split()) x1,y1=map(int,input().split()) if (abs(x1-x)+abs(y1-y))==1 and x1-x==1: print("r") elif (a...
Python3
2022-05-18
0
184
题解 | #计算商品打折结算金额#
n=float(input()) if 100<=n<500: print(n*0.9) elif 500<=n<2000: print(n*0.8) elif 2000<=n<5000: &n...
Python3
2022-05-18
0
189
题解 | #牛牛的快递#
#2022/5/18 15:32 import math a,b=map(str,input().split()) if 0<float(a)<=1 and str(b)=='y': print(25) elif 0<float(a)<...
Python3
2022-05-18
0
237
题解 | #统计数据正负个数#
a=input().split() count1=0 count2=0 for i in range(len(a)): if int(a[i])>0: count1=count1+1 ...
Python3
2022-05-18
0
188
题解 | #牛牛的二三七整除#
a=int(input()) if a%2==0 and a%3!=0 and a%7!=0: print("2") elif a%2!=0 and a%3==0 and a%7!=0: print("3") elif a%2!=0 and a...
Python3
2022-05-18
1
218
题解 | #判断闰年#
#闰年就是能被4整除,且不能被100整数,或者能被400整数 n=int(input()) if (n%4==0 and n%100!=0 or n%400==0): print("yes") else: print("no")
Python3
2022-05-17
1
357
首页
上一页
1
2
3
4
下一页
末页