编写题解 1084: 用筛法求之N内的素数 摘要: #include int main() { int n,c=0; scanf("%d",&n); //输入n for (in…… 题解列表 2024年11月16日 0 点赞 0 评论 261 浏览 评分:9.9
会1就看我这个,看我注释修改进行了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[20]; int i, j, min, temp; for (i =…… 题解列表 2024年11月17日 0 点赞 0 评论 184 浏览 评分:9.9
2791: 计算邮资 摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc…… 题解列表 2024年11月17日 0 点赞 0 评论 298 浏览 评分:9.9
超级简略版 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a=15,b=25,h,y=150; float m; h=y*2/a; m=(a+b)*h/2.0…… 题解列表 2024年11月17日 1 点赞 0 评论 465 浏览 评分:9.9
很简单的题 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int M[20]= {0,31,0,31,30,31,30,31,31,30,…… 题解列表 2024年11月17日 1 点赞 1 评论 645 浏览 评分:9.9
1480 模拟计算器 初学者一定能懂 摘要:解题思路:用强制转换把ch转换成int类型注意事项:需要理解强制转换的定义,括号里面的是需要转换到的数据类型。e.g #include <stdio.h> int main() …… 题解列表 2024年11月17日 3 点赞 0 评论 395 浏览 评分:9.9
1796: 蛇形填数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int n, a[150][150];void twins(i…… 题解列表 2024年11月18日 0 点赞 0 评论 317 浏览 评分:9.9
筛排处理,气死我了这题!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a和数组d,其中d的大小为1…… 题解列表 2024年11月18日 0 点赞 1 评论 150 浏览 评分:9.9
这个不是答案!!!但是这个非常好玩,建议去玩一下,增加兴趣 摘要:解题思路:学到后面突然想起来这道题了注意事项:参考代码:#include <stdio.h>int main() { int a,t,x=0; scanf("%d",&a); while(a!=0){…… 题解列表 2024年11月18日 2 点赞 0 评论 311 浏览 评分:9.9
1054: 二级C语言-计算素数和(最简单的求法) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool add(int n){ int t=1; for(int…… 题解列表 2024年11月18日 0 点赞 0 评论 824 浏览 评分:9.9