1086: A+B for Input-Output Practice (II) 摘要:```cpp #include using namespace std; int main() { int n,a,b; cin>>n; for(int i=1;…… 题解列表 2022年08月31日 0 点赞 0 评论 888 浏览 评分:9.9
1084: 用筛法求之N内的素数 摘要:```cpp #include #include using namespace std; bool zs(int n) { for(int i=2;i>n; for(i…… 题解列表 2022年08月31日 0 点赞 0 评论 464 浏览 评分:9.9
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,M; scanf("%d %d", &M,&N); float h=M; f…… 题解列表 2022年08月31日 0 点赞 0 评论 805 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; float sum=0; float sum1=0; scanf("%d"…… 题解列表 2022年08月31日 0 点赞 0 评论 742 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; scanf("%d %d", &a, &b); int i = a; …… 题解列表 2022年08月31日 0 点赞 0 评论 334 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); int sum1=0; int sum2=0…… 题解列表 2022年08月31日 0 点赞 0 评论 283 浏览 评分:0.0
有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,i; scanf("%d",&a); float b[a],c[a],d[a],sum; b[0]=…… 题解列表 2022年08月31日 0 点赞 2 评论 839 浏览 评分:9.9
两次递归,Sn,An 摘要:解题思路:注意事项:参考代码:#include<stdio.h> //求An的值 void An(int n, int i) { if (n==1) { printf("sin(%…… 题解列表 2022年08月31日 0 点赞 0 评论 464 浏览 评分:9.9
编写题解 1124: C语言训练-大、小写问题 摘要:```c //大、小写问题 #include #include void LowerConver(){ char s[100]; gets(s); int n = strlen…… 题解列表 2022年08月30日 0 点赞 0 评论 408 浏览 评分:0.0
蛇形矩阵,很好理解 摘要:```c #include int main() { int n; int num[100][100]={0}; scanf("%d",&n); int …… 题解列表 2022年08月30日 0 点赞 0 评论 374 浏览 评分:9.9