1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:输入一个数,然后累乘。注意事项:注意用unsigned long long!参考代码:#include<iostream> using namespace std; int main()…… 题解列表 2022年06月18日 0 点赞 0 评论 465 浏览 评分:7.0
1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:从2开始一直到m,用n保存起来,最后用一去减去n。注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; …… 题解列表 2022年06月18日 0 点赞 0 评论 388 浏览 评分:9.0
关于求解最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,de,ge; cin>>a>>b; de=a; ge=b; while(d…… 题解列表 2022年06月18日 0 点赞 0 评论 426 浏览 评分:0.0
适合新手小白 摘要:解题思路:第一步,根据题意定义变量;第二步,输入变量,由题意给变量赋值;第三步,输出变量。注意事项:浮点数可用float和double定义函数,float用格式符%f,double使用格式符%lf。输…… 题解列表 2022年06月18日 0 点赞 0 评论 704 浏览 评分:7.3
字符排序-题解(各语言代码) 摘要:**python** ```python for _ in range(int(input())):print(''.join(sorted(input()))) ``` **java** …… 题解列表 2022年06月18日 0 点赞 0 评论 525 浏览 评分:0.0
A+B for Input-Output Practice (VI) 摘要:解题思路:利用数组注意事项:审好题是关键;参考代码:#include<bits/stdc++.h>using namespace std; int main(){ int n; while(cin…… 题解列表 2022年06月18日 0 点赞 0 评论 408 浏览 评分:9.9
不是说两个空格吗,两个空格过不了,只需要一个 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10]; for (int i = 0;…… 题解列表 2022年06月19日 0 点赞 0 评论 516 浏览 评分:9.9
C++语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:利用等比数列的性质;注意事项:审好题目参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n; c…… 题解列表 2022年06月19日 0 点赞 0 评论 501 浏览 评分:9.9
C/C++ 47行解决 思路简单 耗时0ms 内存1216 摘要: ~~好久没写代码了,手有点痒就写一篇好了(bushi)~~ ------------ 解题思路: 先对每个数字进行处理,然后一次判断是否为相关数即可,具体见代码 -----------…… 题解列表 2022年06月19日 0 点赞 0 评论 620 浏览 评分:9.9
蓝桥杯算法提高VIP-递归倒置字符数组(C++) 摘要:下面是我(一个小白)的代码,思路简单,欢迎采纳 ```cpp #include #include//调用string的头文件 using namespace std; string zm; …… 题解列表 2022年06月19日 0 点赞 0 评论 1202 浏览 评分:8.7