题解列表

筛选

c语言代码解决问题

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

简单的函数阶乘求和

摘要:解题思路:注意事项:参考代码:n=int(input())Sn=0def  multiply(n):    sum=1    for i in range(1,n+1):        sum*=i ……

2857: 加密的病历单

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

试除法分解质因数

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

2917: 奇数单增序列

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

题目 1216: 成绩转换题解

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

题目 1213: 幸运儿题解

摘要:参考代码:#include<iostream> using namespace std; int n; bool flag[100]; bool f(){     int num=0;  ……