1058: 二级C语言-求偶数和(很简单的东西) 摘要: #include int main() { int n; int sum=0; int a[100]; //通过…… 题解列表 2022年10月05日 0 点赞 0 评论 371 浏览 评分:0.0
简洁明了的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { long N,sum=0; scanf("%d",&N); for(int…… 题解列表 2022年10月05日 0 点赞 0 评论 385 浏览 评分:0.0
记录自己答案:1021 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; double xn1,xn=1.0; scanf("%d",&x); xn1=(xn+x/xn)/…… 题解列表 2022年10月05日 0 点赞 0 评论 415 浏览 评分:0.0
java 20行 基础循环与判断 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { int …… 题解列表 2022年10月06日 0 点赞 0 评论 426 浏览 评分:0.0
1046-自定义函数之数字后移 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void back(int n,int m,int a[]) //数组作形参,数组大小可以省略…… 题解列表 2022年10月06日 0 点赞 0 评论 519 浏览 评分:0.0
第一个 Hello World 程序 摘要: #include using namespace std; int main() { cout …… 题解列表 2022年10月06日 0 点赞 0 评论 328 浏览 评分:0.0
三个数最大值(传统打擂法) 摘要: #include using namespace std; int main() { int a, b, c , max; cin >> …… 题解列表 2022年10月06日 0 点赞 0 评论 369 浏览 评分:0.0
密码破译(直接法) 摘要: #include using namespace std; int main() { char c1, c2, c3, c4, c5; c…… 题解列表 2022年10月06日 0 点赞 0 评论 437 浏览 评分:0.0
母牛的故事 摘要: #include using namespace std; int main() { int a[55] = { 0,1,2,3,4 }, i, n;…… 题解列表 2022年10月06日 0 点赞 0 评论 347 浏览 评分:0.0
1047-报数问题 摘要:解题思路:注意事项:参考代码:/*约瑟夫环问题:1) 递推公式:f(n,m)=(f(n-1,m)+m)%n //f(m,n) 表示n个人报数,每报到m时杀掉那个人,最终胜利者的编号。 2) 递推公式…… 题解列表 2022年10月06日 0 点赞 0 评论 387 浏览 评分:0.0