题解列表

筛选

题目 1216: 成绩转换题解

摘要:参考代码:#include<iostream> using namespace std; int main(){     int score;     while(cin>>score){ ……

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……