意若久时天然呆
意若久时天然呆
全部文章
分类
归档
标签
去牛客网
登录
/
注册
意若久时天然呆的博客
全部文章
(共62篇)
题解 | 田忌赛马
a, b = sorted(list(map(int, input().split()))), sorted(list(map(int, input().split()))) print("Yes" if a[0] < b[1] and a[1] < b[2] els...
2026-01-17
1
15
题解 | 吐泡泡
import sys t = int(sys.stdin.readline()) for _ in range(t): s, a = sys.stdin.readline().strip(), [] for c in s: b = c while T...
2026-01-17
1
20
题解 | 【模板】序列操作
import sys q, t = int(sys.stdin.readline()), [] for _ in range(q): k = sys.stdin.readline().split() if k[0] == "1": t.appen...
2026-01-15
1
20
题解 | 两直线交点
class Point: def __init__(self, x=0.0, y=0.0): self.x = x self.y = y class Line: def __init__(self, point_a=None, point_b=No...
2026-01-15
1
20
题解 | 点到直线距离
import math class Point: def __init__(self, x, y): self.x = x self.y = y class Line: def __init__(self, point_a, point_b):...
2026-01-15
1
18
题解 | 字符串操作
n, m = map(int, input().split(" ")) s = input() for _ in range(m): l, r, c1, c2 = input().split(" ") s = s[: int(l) - 1] +...
2026-01-14
1
15
题解 | 牛牛的考试
import sys for _ in range(int(sys.stdin.readline())): n1, op = [len(i) for i in [sys.stdin.readline() for _ in range(4)]], ["A", "...
2026-01-14
1
19
题解 | 贪吃蛇游戏
import sys from collections import deque def moveSnake(dir, snake): # TODO: 实现移动逻辑 head_x, head_y = snake[-1] new_head = move(head_x, he...
2026-01-10
1
24
题解 | 玩家积分榜系统
import sys d = {} def insert_or_update_score(name, score): """插入或更新玩家的分数""" # TODO: 实现插入或更新逻辑 d[name] = s...
2026-01-10
1
17
题解 | 特殊城市
import sys from collections import defaultdict n, d, t = int(sys.stdin.readline()), defaultdict(int), 0 for _ in range(n): s, c = sys.stdin.readl...
2026-01-06
1
25
首页
上一页
1
2
3
4
5
6
7
下一页
末页