1088: A+B for Input-Output Practice (IV) 摘要:```cpp #include using namespace std; int main() { int sum,n,x; while(cin>>n&&n) {…… 题解列表 2022年08月31日 0 点赞 0 评论 690 浏览 评分:9.9
1087: A+B for Input-Output Practice (III) 摘要:```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b&&(a!=0||b!=…… 题解列表 2022年08月31日 0 点赞 0 评论 727 浏览 评分:9.9
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 评论 875 浏览 评分: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 评论 456 浏览 评分: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 评论 797 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; float sum=0; float sum1=0; scanf("%d"…… 题解列表 2022年08月31日 0 点赞 0 评论 735 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; scanf("%d %d", &a, &b); int i = a; …… 题解列表 2022年08月31日 0 点赞 0 评论 323 浏览 评分: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 评论 274 浏览 评分: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 评论 834 浏览 评分:9.9
两次递归,Sn,An 摘要:解题思路:注意事项:参考代码:#include<stdio.h> //求An的值 void An(int n, int i) { if (n==1) { printf("sin(%…… 题解列表 2022年08月31日 0 点赞 0 评论 447 浏览 评分:9.9