C/C++ 47行解决 思路简单 耗时0ms 内存1216 摘要: ~~好久没写代码了,手有点痒就写一篇好了(bushi)~~ ------------ 解题思路: 先对每个数字进行处理,然后一次判断是否为相关数即可,具体见代码 -----------…… 题解列表 2022年06月19日 0 点赞 0 评论 567 浏览 评分: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 评论 442 浏览 评分:9.9
不是说两个空格吗,两个空格过不了,只需要一个 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10]; for (int i = 0;…… 题解列表 2022年06月19日 0 点赞 0 评论 476 浏览 评分:9.9
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 评论 364 浏览 评分:9.9
关于求解最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,de,ge; cin>>a>>b; de=a; ge=b; while(d…… 题解列表 2022年06月18日 0 点赞 0 评论 372 浏览 评分:0.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 评论 333 浏览 评分:9.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:输入一个数,然后累乘。注意事项:注意用unsigned long long!参考代码:#include<iostream> using namespace std; int main()…… 题解列表 2022年06月18日 0 点赞 0 评论 401 浏览 评分:7.0
1145: C语言训练-自由落体问题 摘要:解题思路:使用循环第一次单独算!后面每次算两个!注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int m…… 题解列表 2022年06月18日 0 点赞 0 评论 357 浏览 评分:9.9
1139: C语言训练-求素数问题 摘要:解题思路:一一枚举,再判断是否是质数。注意事项:注意有用#include<cmath>!!!参考代码:#include<iostream> #include<cmath> using namesp…… 题解列表 2022年06月18日 0 点赞 0 评论 354 浏览 评分:9.9
蓝桥杯2018年第九届真题-交换次数 摘要:#### 暴力 ``` #include #include #include #include using namespace std; const int N = 10010; …… 题解列表 2022年06月17日 0 点赞 0 评论 457 浏览 评分:0.0