这题的有问题 摘要:#include<stdio.h> int ans(int n); int main(void) { int to, from, temp; int i, j; i…… 题解列表 2024年12月29日 0 点赞 1 评论 492 浏览 评分:10.0
初学者思路,简单易懂 摘要:解题思路:从字符数组的两边往中间开始交换注意事项:参考代码: #include<stdio.h> #include<string.h> void fun(char*); int main()…… 题解列表 2024年12月29日 12 点赞 1 评论 1676 浏览 评分:10.0
字符串的输入输出处理(有点难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(void) { char a[100][1000]; …… 题解列表 2024年12月29日 0 点赞 0 评论 732 浏览 评分:0.0
河中跳房子#自作聪明的约翰 解题思路:步骤分析:1.不移除任何岩石时,岩石之间的跳跃距离分别是:最短跳跃距离是3。从起点到岩石2:2从岩石2到岩石11:9从岩石11到岩石14:3从岩石14到岩石17:3从岩石17到岩石21:4从岩石21到终点25:42.移除岩石:假设我们移除岩石11和14,这样剩下的岩石是2,17,21。 题解列表 2024年12月29日 2 点赞 0 评论 677 浏览 评分:8.0
1062:简单易懂解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int m,n,s; scanf("%d%d",&m,&n); s=m; while(m%s!=0||n%s!…… 题解列表 2024年12月29日 0 点赞 0 评论 939 浏览 评分:0.0
1061:简单易懂解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[20]; int f=0,sum=0; for(int i=0;i<20;i++){ scanf(…… 题解列表 2024年12月29日 0 点赞 0 评论 1063 浏览 评分:0.0
等差数列(简单公式) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; int a1=2; int d=3; scanf("%d",&n); sum=n*a1…… 题解列表 2024年12月29日 2 点赞 0 评论 1267 浏览 评分:0.0
结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct { char num[20]; char name[20]; int score[3…… 题解列表 2024年12月29日 3 点赞 0 评论 1015 浏览 评分:0.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 530 浏览 评分:0.0
2801: 奇数求和题解 摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n,m;cin…… 题解列表 2024年12月29日 0 点赞 0 评论 643 浏览 评分:0.0