白子伍
白子伍
全部文章
分类
归档
标签
去牛客网
登录
/
注册
白子伍的博客
全部文章
(共16篇)
题解 | 小红的矩阵染色
import sys def solve(): input = sys.stdin.readline n, m, k = list(map(int, input().split())) grid = [list(input().strip()) for _ in range...
2026-05-07
0
21
题解 | 分解质因数-不能用埃氏筛,只能用试除法
import re import sys def solve(): input = sys.stdin.readline n = int(input()) res = [] while n % 2 == 0: res.append(2) ...
2026-05-06
0
29
题解 | 操作数组
import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) def solve(): input = sys.stdin.readline n = in...
2026-05-04
0
28
题解 | 小红关鸡
import enum import sys from math import inf from functools import lru_cache from collections import deque def solve(): input = sys.stdin.readline...
2026-05-02
0
36
题解 | 流水记录清洗系统
<role> 你是一个专业的数据清洗工程师,任务是将将单条流水记录清洗为标准 JSON </role> <rule> ## 规则和字段定义 ### amount 从用户输入得到流水的金额,默认为0.0 - 转换为正数;四舍五入,保留一位小数 - 例如:102...
2026-04-29
0
39
题解 | 食材解析系统
<role> 你的任务是对用户意图进行解析,将用户的输入的文本信息转换为标准的JSON格式 </role> <rule> ## rule和字段定义 ### 数量提取 从用户输入中提取食材的数量/重量,没有提及的话,默认是1.0 - 比如:来点盐->1....
2026-04-28
0
32
题解 | 星环
import sys from math import inf def solve(): # num二进制,从k+1找,1,最接近;2,距离最短 input = sys.stdin.readline k, m = list(map(int, input().split())...
2026-04-24
0
34
题解 | 丛林木马
import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) def solve(): input = sys.stdin.readline a, b = ...
2026-04-24
0
34
题解 | 迷宫寻路
import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) input = sys.stdin.readline n, m = list(map(int, input()...
2026-04-23
0
36
题解 | 分元宵
import sys from collections import deque, defaultdict, Counter from functools import cache import math import heapq # for line in sys.stdin: # a ...
2026-04-17
0
39
首页
上一页
1
2
下一页
末页