1048-自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;string copy(int m,char a[]){ s…… 题解列表 2022年10月06日 0 点赞 0 评论 352 浏览 评分:0.0
1047-报数问题 摘要:解题思路:注意事项:参考代码:/*约瑟夫环问题:1) 递推公式:f(n,m)=(f(n-1,m)+m)%n //f(m,n) 表示n个人报数,每报到m时杀掉那个人,最终胜利者的编号。 2) 递推公式…… 题解列表 2022年10月06日 0 点赞 0 评论 325 浏览 评分:0.0
1074: 数字整除 摘要: #include #include using namespace std; int main() { string s; in…… 题解列表 2022年10月06日 1 点赞 0 评论 584 浏览 评分:9.9
母牛的故事 摘要: #include using namespace std; int main() { int a[55] = { 0,1,2,3,4 }, i, n;…… 题解列表 2022年10月06日 0 点赞 0 评论 306 浏览 评分:0.0
密码破译(直接法) 摘要: #include using namespace std; int main() { char c1, c2, c3, c4, c5; c…… 题解列表 2022年10月06日 0 点赞 0 评论 379 浏览 评分:0.0
三个数最大值(传统打擂法) 摘要: #include using namespace std; int main() { int a, b, c , max; cin >> …… 题解列表 2022年10月06日 0 点赞 0 评论 316 浏览 评分:0.0
第一个 Hello World 程序 摘要: #include using namespace std; int main() { cout …… 题解列表 2022年10月06日 0 点赞 0 评论 281 浏览 评分:0.0
简单的 a + b 摘要: #include using namespace std; int main() { int a, b; while (cin >…… 题解列表 2022年10月06日 0 点赞 0 评论 389 浏览 评分:9.9
蛇形矩阵(JAVA)自然数输入(较麻烦) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args…… 题解列表 2022年10月06日 0 点赞 0 评论 519 浏览 评分:9.9
纯数学题,没意思 摘要:解题思路:注意事项:参考代码:a, b = map(int, input().split())c = abs(b - a)print(c - (a % c))…… 题解列表 2022年10月06日 2 点赞 4 评论 1434 浏览 评分:7.3