2897: 神奇的幻方 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> using namespace std; …… 题解列表 2024年08月28日 0 点赞 0 评论 300 浏览 评分:9.9
石头剪刀布 摘要:解题思路:小A和小B的出拳是有周期性的。i % A 和 i % B 的作用是计算当前轮次 i 所对应的出拳规律的位置。当i达到或超过 A 或 B 时,取余操作会使其回到0。例如:如果 i 为 3,而 …… 题解列表 2024年08月29日 0 点赞 0 评论 336 浏览 评分:9.9
[编程入门]自定义函数之字符类型统计 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) {…… 题解列表 2024年08月29日 0 点赞 0 评论 449 浏览 评分:9.9
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 10; int a[N]; int main() {…… 题解列表 2024年08月30日 1 点赞 1 评论 658 浏览 评分:9.9
呜呜呜终于写出来了。我与链表的爱恨情仇 摘要:解题思路://用到链表的基础用法,链表中节点按照成员排序的话用插入法比较好用。注意事项://第一次写链表题目参考代码:#include <stdio.h> #include <stdlib.h> …… 题解列表 2024年08月30日 3 点赞 0 评论 589 浏览 评分:9.9
1157: 亲和数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin >> n; while(…… 题解列表 2024年08月30日 1 点赞 0 评论 663 浏览 评分:9.9
1159: 偶数求和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n, m; while(cin >> n …… 题解列表 2024年08月30日 0 点赞 0 评论 599 浏览 评分:9.9
题解 2773: 计算线段长度 math.h头文件 摘要:??解题思路??此题中两点之间存在四种情况:1.两点 X坐标 相同表示为: Xa == Xb解:两点 Y坐标 差值的 绝对值2.两点 Y坐标 相同表示为: Ya == Yb解:两点 X坐标 差值的 绝…… 题解列表 2024年08月30日 0 点赞 0 评论 397 浏览 评分:9.9
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int swap(int *a,int *b){ int temp; temp=*a; *a=*b; *b=temp; return …… 题解列表 2024年08月30日 0 点赞 0 评论 748 浏览 评分:9.9
判断一年的第几天 摘要:参考代码:#include<stdio.h>struct date { int year; int month; int day;};int main() { struct d…… 题解列表 2024年08月31日 1 点赞 0 评论 263 浏览 评分:9.9