Huau
Huau
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Huau的博客
全部文章
(共15篇)
题解 | 上三角矩阵判定
import sys n = int(input()) res = "YES" for i in range(n): list_in = list(map(int, input().split())) for j in range(n): if ...
2025-06-22
0
9
题解 | 校门外的树
import sys L, M = map(int, input().split()) total = L + 1 repeat_list = [] erea_d = {} for i in range(M): b, e = map(int, input().split()) er...
2025-06-22
0
11
题解 | 多组输入a+b II
import sys num = int(input()) for i in range(num): a, b = map(int, input().split()) print(a + b)
2025-06-16
0
11
题解 | 四季
import sys season_info = { 'spring': [3, 4, 5], 'summer': [6, 7, 8], 'autumn': [9, 10, 11], 'winter': [12, 1, 2] } a = input() month...
2025-06-16
0
10
题解 | 卡拉兹函数
import sys for line in sys.stdin: n = int(line.split()[0]) res = 0 if n % 2 == 0: res = n // 2 else: res = 3 * n + 1 ...
2025-06-16
0
14
题解 | 判断闰年
import sys year = int(input()) if year % 400 == 0: print('yes') elif (year % 4) == 0 and (year % 100) != 0 : print('yes') else: print('n...
2025-06-16
0
13
题解 | 明天星期几?
import sys a = int(input()) y = a % 7 print(y + 1)
2025-06-16
0
15
题解 | 计算机内存
import sys a = int(input()) b = a * 1024 * 1024 count = b // 4 print(count)
2025-06-16
0
17
题解 | 绕距
import sys import math str_in = sys.stdin.readlines() x1, y1 = int(str_in[0].split()[0]), int(str_in[0].split()[1]) x2, y2 = int(str_in[1].split()[0...
2025-06-16
0
15
题解 | 平方根
import sys import math a = int(input()) sqrt_res = math.sqrt(a) # res = int(sqrt_res) # int强转 向下取整 res = math.floor(sqrt_res) # math.floor方法...
2025-06-16
0
17
首页
上一页
1
2
下一页
末页