题解列表

筛选

2832: 第n小的质数

摘要:参考代码:import math n = int(input()) arr = [] for i in range(2, 100000):     for j in range(2, int(……

主体C语言的简单链表

摘要:解题思路:封装函数 调用注意事项:参考代码://// Created by Freedom on 2024/3/19.//#include <iostream>#include <cstdio>usi……

python 2833: 金币

摘要:参考代码:n = int(input()) s = 0 money = 0 flag = n day = n while day > 0:     flag -= 1     money……

2831: 画矩形

摘要:参考代码:high, wide, s, flag = map(str, input().split()) for i in range(int(high)):     for j in range……

2830: 数字统计

摘要:参考代码:L, R = map(int, input().split()) s = 0 for i in range(L, R + 1):     s += str(i).count(&#39;……

2827: 计算多项式的导函数

摘要:参考代码:n = int(input()) if n == 0:     print(0)     quit() arr = list(map(int, input().split())) ……

~~求亲和数~~

摘要: #include int main() { int m; scanf("%d",&m); while(m--)//循环……

2826: 雇佣兵

摘要:参考代码:m, n, x = map(int, input().split()) a = 0 while x > 0:     x -= 1     a += n     if a >= m…

报时助手——基础题目

摘要:解题思路:很简单,分情况讨论即可注意事项:参考代码:h, m = map(int, input().split())    # 时分 M = {0: &#39;zero&#39;, 1: &#39;……