用筛法求之N内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,t; scanf("%d",&n); for(i=2;i<=n…… 题解列表 2022年12月24日 0 点赞 0 评论 158 浏览 评分:0.0
简单明了,看了就懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年12月24日 0 点赞 0 评论 198 浏览 评分:0.0
公共子序列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005];int main(){ string s1,…… 题解列表 2022年12月24日 0 点赞 0 评论 234 浏览 评分:0.0
1144:自守数问题-C语言printf大法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("0 1 5 6 25 76 376 625 9376 90625 …… 题解列表 2022年12月24日 0 点赞 0 评论 228 浏览 评分:0.0
用二维数组做存储结构,内含二维数组函数传参 摘要:解题思路:注意事项:if(n>=1&&n<=6)//题目要求n的取值范围参考代码:#include<stdio.h> #define N 6 void input_function(int n,i…… 题解列表 2022年12月25日 0 点赞 0 评论 113 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10]; scanf("%s",a); …… 题解列表 2022年12月25日 0 点赞 0 评论 153 浏览 评分:0.0
C++ 利用二维数组+二维数组传参 摘要:解题思路:注意事项:在C中,下面代码中的函数find_max(int n,int a[][n])是允许的,但是C++中不行! 具体是为什么?我也不知道,但我很想知道,有哪…… 题解列表 2022年12月25日 0 点赞 0 评论 222 浏览 评分:0.0
判断数正负 摘要:解题思路:注意事项:注意不要超时。参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n>0) { …… 题解列表 2022年12月25日 0 点赞 0 评论 244 浏览 评分:0.0
整数的和(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n>0) { prin…… 题解列表 2022年12月25日 0 点赞 0 评论 217 浏览 评分:0.0
求平均年龄 摘要:解题思路:注意事项:注意乘上1.0参考代码:#include<stdio.h>int main(){ int i,n,a[100],s=0; scanf("%d",&n); for(…… 题解列表 2022年12月25日 0 点赞 0 评论 256 浏览 评分:0.0