1139: C语言训练-求素数问题 摘要:解题思路:一一枚举,再判断是否是质数。注意事项:注意有用#include<cmath>!!!参考代码:#include<iostream> #include<cmath> using namesp…… 题解列表 2022年06月18日 0 点赞 0 评论 291 浏览 评分:9.9
1145: C语言训练-自由落体问题 摘要:解题思路:使用循环第一次单独算!后面每次算两个!注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int m…… 题解列表 2022年06月18日 0 点赞 0 评论 276 浏览 评分: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 评论 303 浏览 评分:9.9
不是说两个空格吗,两个空格过不了,只需要一个 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10]; for (int i = 0;…… 题解列表 2022年06月19日 0 点赞 0 评论 420 浏览 评分: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 评论 381 浏览 评分:9.9
C/C++ 47行解决 思路简单 耗时0ms 内存1216 摘要: ~~好久没写代码了,手有点痒就写一篇好了(bushi)~~ ------------ 解题思路: 先对每个数字进行处理,然后一次判断是否为相关数即可,具体见代码 -----------…… 题解列表 2022年06月19日 0 点赞 0 评论 503 浏览 评分:9.9
信息学奥赛一本通T1249- Lake Counting (BFS,DFS) java 题解 摘要:解题思路: 遇到一个水洼(W)进行扩散标记为干燥(.) 计数加一(count++) 依次遍历去除   题解列表 2022年06月19日 0 点赞 0 评论 536 浏览 评分:9.9
1026: [编程入门]数字逆序输出c++版(大神别来;“菜鸟”必看) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[101]; for(int i=1;i<=10;i++) …… 题解列表 2022年06月19日 0 点赞 0 评论 651 浏览 评分:9.9
[编程入门]自定义函数之整数处理 摘要:解题思路:根据题意可知,首先需要定义三个函数用来输入十个整数,处理十个整数,输出十个整数;本题中用fun1,fun2,fun3来表示这三个函数,因为数组在函数之间传递的过程中,用数组名作函数实参时,并…… 题解列表 2022年06月19日 0 点赞 0 评论 347 浏览 评分:9.9
代码极少,for循环和数组解题,新的解题思路 摘要:解题思路:把利润分成多个100000元来看,每计算掉100000元的应得奖励,就减去利润的100000。注意事项:p表示利润,r表示奖金,ratio数组为每个阶段的利率。参考代码:#include<s…… 题解列表 2022年06月19日 0 点赞 0 评论 319 浏览 评分:9.9