[编程入门]筛选N以内的素数-题解(C语言代码) 摘要:# 用简单素数筛选法求N以内的素数 素数是除了1和本身不能整除的数 因为要输出n以内所有的素数,所以用第一个for循环遍历查找 第二个for循环是查找从2开始,到小于本身是不是i的因数…… 题解列表 2019年10月16日 0 点赞 1 评论 1560 浏览 评分:2.0
二级C语言-等差数列-题解(C++代码) 摘要:##### 解题思路: 求已知首项a1和公差d的等差数列前n项和 ,我们可知道最后一项an的表达式 ,之后求前n项和 ,我们可以用等差数列前n项和公式 :Sn = (a1+an)*n/2 ##…… 题解列表 2019年10月16日 0 点赞 0 评论 827 浏览 评分:0.0
【出圈】-题解(C++代码) by Zfans. 摘要:```cpp #include using namespace std; int main() { int n, m; while (cin >> n >> m) …… 题解列表 2019年10月16日 0 点赞 0 评论 1297 浏览 评分:9.9
K-进制数-题解(C语言代码) 摘要:#### 1117题-K-进制数-题解(C语言描述) [原题连接:K-进制数](https://blog.dotcpp.com/article/aedit1117 "原题连接:K-进制数") …… 题解列表 2019年10月16日 0 点赞 0 评论 690 浏览 评分:0.0
K-进制数-题解(C语言代码) 摘要:#### 1117题-K-进制数-题解(C语言描述) [原题连接:K-进制数](https://blog.dotcpp.com/article/aedit1117 "原题连接:K-进制数") …… 题解列表 2019年10月16日 0 点赞 0 评论 669 浏览 评分:8.0
【偶数求和】-题解(C++代码) by Zfans. 摘要:```cpp #include using namespace std; int main() { int n, m; int arr[100]; whi…… 题解列表 2019年10月16日 0 点赞 0 评论 943 浏览 评分:9.9
[编程入门]自定义函数之数字分离-题解(C语言代码)--不知道错在哪 摘要:**我自己编译是正确的但是提交报错**  ```c #include int main()…… 题解列表 2019年10月16日 0 点赞 0 评论 702 浏览 评分:0.0
求长方形面积-题解(C++代码) 摘要:简单题1952:求长方形的面积和周长 输出格式 s: c: s=A*B; c=(A+B)*2; 代码如下: #include using …… 题解列表 2019年10月16日 0 点赞 0 评论 1403 浏览 评分:3.3
The 3n + 1 problem -题解(C语言代码) 摘要:#### 1095: The 3n + 1 problem [原题连接:The 3n +1 problem](https://www.dotcpp.com/oj/problem1000.html "…… 题解列表 2019年10月16日 0 点赞 8 评论 1125 浏览 评分:9.3
The 3n + 1 problem -题解(C语言代码) 摘要:#### 1095: The 3n + 1 problem [原题连接:The 3n +1 problem](https://www.dotcpp.com/oj/problem1000.html "…… 题解列表 2019年10月16日 0 点赞 0 评论 407 浏览 评分:0.0