爱读书的菠萝蜜很想去杭州
爱读书的菠萝蜜很想去杭州
全部文章
分类
归档
标签
去牛客网
登录
/
注册
爱读书的菠萝蜜很想去杭州的博客
全部文章
(共45篇)
题解 | 约瑟夫环
n, k, m = map(int, input().split()) people = list(range(n)) index = k % n # 起始位置 while len(people) > 1: # 计算待移除位置 index = (index + m - 1...
2025-06-06
0
13
题解 | 记数问题
num_list = list(map(int,input().split())) n,x = num_list[0],str(num_list[1]) count = 0 for i in range(1,n+1): for s in str(i): if s == x: ...
2025-06-06
0
15
题解 | 牛牛的数学作业
from math import inf import sys t = int(input()) input_stata = [li for li in sys.stdin] num_li = [[] for pa in range(t)] n = [0] * t for idx, ele in ...
2025-06-06
0
16
题解 | 素数判断
import sys t = int(input()) num_list = [int(li) for li in sys.stdin] for number in num_list: if number>2: for i in range(2,number): ...
2025-06-05
0
19
题解 | 尼科彻斯定理
n = int(input()) k = n*(n-1)/2 value = int(2*k+1) output = str(value) i = 1 while i < n: value = int(2*(k+i)+1) output = output + "+&q...
2025-04-27
0
29
首页
上一页
1
2
3
4
5
下一页
末页