melon.
melon.
全部文章
分类
归档
标签
去牛客网
登录
/
注册
melon.的博客
全部文章
(共117篇)
题解 | #简单计算器#
s = input() operator = ('+','-','*','/') for i in s: if i in operator: a,b = map(float,s.split(i)) break if i == '+': ...
2023-02-11
1
255
题解 | #[NOIP2008]ISBN号码#
list = input().split('-') num = ''.join(list) a,b = num[:-1],num[-1] sum = 0 for i in range(len(a)): sum += int(a[i]) * (i+1) mod = str(sum % 11)...
2023-02-10
1
240
题解 | #小乐乐是否被叫家长#
a,b,c = map(int,input().split()) average = (a+b+c) / 3 print('YES') if average < 60 else print('NO')
2023-02-10
1
235
题解 | #获得月份天数#
while 1: try: year,month = map(int,input().split()) if month == 2: if (year % 4 == 0) and (year % 100 !...
2023-02-10
1
280
题解 | #计算一元二次方程#
from math import sqrt while 1: try: a,b,c = map(float,input().split()) if a != 0: delta = b*b - 4*a*c i...
2023-02-09
1
269
题解 | #牛牛的计划#
y,m,d = map(int,input().split()) y1,m1,d1 = map(int,input().split()) if y < y1: print('yes') elif y > y1: print('no') else: if...
2023-02-09
1
259
题解 | #三角形判断#
while 1: try: a,b,c = map(int,input().split()) if (a + b > c) and (a + c > b) and (b + c > a): if a == b ==...
2023-02-09
1
271
题解 | #计算单位阶跃函数#
while 1: try: t = int(input()) if t > 0: print(1) elif t == 0: print(1/2) else: ...
2023-02-09
1
278
题解 | #HTTP状态码#
dict = {200:'OK',202:'Accepted',400:'Bad Request',403:'Forbidden',404:'Not Found',500:'Internal Server Error',502:'Bad Gateway'} while 1: try: ...
2023-02-09
1
263
题解 | #牛牛的一周#
a = int(input()) dict = {1:'Monday',2:'Tuesday',3:'Wednesday',4:'Thursday',5:'Friday',6:'Saturday',7:'Sunday'} print(dict[a])
2023-02-09
1
257
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页