题解列表

筛选

2917: 奇数单增序列

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int main() {   ……

试除法分解质因数

摘要:解题思路:试除法分解质因数,思路来源y神注意事项:主要是格式问题,用一个list来保存所有的质因数,然后最后用join输出参考代码:def divide(x: int):    if x < 2:  ……

2857: 加密的病历单

摘要:```python s = input() news = str() for c in s: if c.isupper(): news += c.lower() else: ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101], str1[1000]; gets(str); ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int main(){ struct date ……

1128:两行代码

摘要:解题思路:注意事项:参考代码:for x in sorted([int(x) for x in input().split()]):     print(x, end=&#39; &#39;)……

1129:两行代码

摘要:解题思路:注意事项:参考代码:for x in sorted(map(int, input().split()), reverse=True):     print(x, end=&#39; &#3……

1072基础解法(Python)

摘要:解题思路:简单思路注意事项:了解divmod()函数的基础用法参考代码:import sysfor line in sys.stdin :    bot = int(line)    if bot =……

1118:TOM数超简单字符数组算法

摘要:解题思路:字符数组,记得-‘0’将字符转换成数字注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <al……