[编程入门]筛选N以内的素数-题解(C语言代码) #用简单素数筛选法求N以内的素数素数是除了1和本身不能整除的数因为要输出n以内所有的素数,所以用第一个for循环遍历查找第二个for循环是查找从2开始,到小于本身是不是i的因数j,即未知数遍历除以因数j;第一次写的错误是只要碰到i%j!=0的情况就输出并break, 题解列表 2019年10月16日 0 点赞 1 评论 1940 浏览 评分:2.0
二级C语言-等差数列-题解(C++代码) #####解题思路:求已知首项a1和公差d的等差数列前n项和,我们可知道最后一项an的表达式,之后求前n项和,我们可以用等差数列前n项和公式:Sn=(a1+an)*n/2#####参考代码:```c#includeusingnamespacestd;intmain(){inta1=2, 题解列表 2019年10月16日 0 点赞 0 评论 1170 浏览 评分:0.0
【出圈】-题解(C++代码) by Zfans. 摘要:```cpp #include using namespace std; int main() { int n, m; while (cin >> n >> m) …… 题解列表 2019年10月16日 0 点赞 0 评论 1824 浏览 评分:9.9
K-进制数-题解(C语言代码) 摘要:#### 1117题-K-进制数-题解(C语言描述) [原题连接:K-进制数](https://blog.dotcpp.com/article/aedit1117 "原题连接:K-进制数") …… 题解列表 2019年10月16日 0 点赞 0 评论 1100 浏览 评分:0.0
K-进制数-题解(C语言代码) 摘要:#### 1117题-K-进制数-题解(C语言描述) [原题连接:K-进制数](https://blog.dotcpp.com/article/aedit1117 "原题连接:K-进制数") …… 题解列表 2019年10月16日 0 点赞 0 评论 1030 浏览 评分:8.0
【偶数求和】-题解(C++代码) by Zfans. ```cpp#includeusingnamespacestd;intmain(){intn,m;intarr[100];while(cin>>n>>m){for(inti=0;i 题解列表 2019年10月16日 0 点赞 0 评论 1372 浏览 评分:9.9 [编程入门]自定义函数之数字分离-题解(C语言代码)--不知道错在哪 **我自己编译是正确的但是提交报错**```c#includeintmain(){chara[5];scanf("%s",&a);for(inti=0;i 题解列表 2019年10月16日 0 点赞 0 评论 1058 浏览 评分:0.0 求长方形面积-题解(C++代码) 简单题1952:求长方形的面积和周长输出格式s:c:s=A*B;c=(A+B)*2;代码如下:#includeusingnamespacestd;intmain(){intA,B;cin>>A>>B;ints=A*B;intc=(A+B)*2;cout 题解列表 2019年10月16日 0 点赞 0 评论 1761 浏览 评分: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 评论 1401 浏览 评分: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 评论 624 浏览 评分:0.0 « 12...4467446844694470447144724473...59145915 »
[编程入门]自定义函数之数字分离-题解(C语言代码)--不知道错在哪 **我自己编译是正确的但是提交报错**```c#includeintmain(){chara[5];scanf("%s",&a);for(inti=0;i 题解列表 2019年10月16日 0 点赞 0 评论 1058 浏览 评分:0.0
求长方形面积-题解(C++代码) 简单题1952:求长方形的面积和周长输出格式s:c:s=A*B;c=(A+B)*2;代码如下:#includeusingnamespacestd;intmain(){intA,B;cin>>A>>B;ints=A*B;intc=(A+B)*2;cout 题解列表 2019年10月16日 0 点赞 0 评论 1761 浏览 评分: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 评论 1401 浏览 评分: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 评论 624 浏览 评分:0.0