C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:注意事项:参考代码:n = int(input())ls = [1]for i in range(2,n+1): ls.append(ls[-1]*i)print(sum(ls))…… 题解列表 2021年12月15日 0 点赞 0 评论 546 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:用字符相乘注意事项:参考代码:m,n = map(str,input().split())ls = []for i in range(1,int(n)+1): ls.append(m*…… 题解列表 2021年12月15日 0 点赞 0 评论 563 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:ls = []for i in map(str,range(999,10000)): if (int(i[:2])+int(i[2:]))**2 == int(i)…… 题解列表 2021年12月15日 0 点赞 0 评论 416 浏览 评分:0.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:n =int(input())ls = [10]for i in range(n): ls.append(ls[-1]+2)print(ls[-2])…… 题解列表 2021年12月15日 0 点赞 0 评论 432 浏览 评分:0.0
1085: A+B for Input-Output Practice (I) 摘要:无脑打印,没啥可说的。#include<bits/stdc++.h> using namespace std; int main(){ int a,b; while(ci…… 题解列表 2021年12月15日 0 点赞 0 评论 337 浏览 评分:0.0
1086: A+B for Input-Output Practice (II) 摘要:无脑打印。#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; i…… 题解列表 2021年12月15日 0 点赞 0 评论 382 浏览 评分:0.0
1087: A+B for Input-Output Practice (III) 摘要:a 和 b 同时为 0 时跳出循环。#include<bits/stdc++.h> using namespace std; int main(){ int a,b; w…… 题解列表 2021年12月15日 0 点赞 0 评论 295 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int R(char a[],char b[]){ i…… 题解列表 2021年12月15日 0 点赞 0 评论 465 浏览 评分:0.0
1089: A+B for Input-Output Practice (V) 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a,sum; cin >> n; …… 题解列表 2021年12月15日 0 点赞 0 评论 351 浏览 评分:0.0
1090: A+B for Input-Output Practice (VI) 摘要:这题其实就是上两题改一下。。#include<bits/stdc++.h> using namespace std; int main(){ int m,a,sum; w…… 题解列表 2021年12月15日 0 点赞 0 评论 376 浏览 评分:0.0