河中跳房子#自作聪明的约翰 摘要:解题思路:步骤分析:1.不移除任何岩石时,岩石之间的跳跃距离分别是:最短跳跃距离是 3。从起点到岩石 2:2从岩石 2 到岩石 11:9从岩石 11 到岩石 14:3从岩石 14 到岩石 17:3从岩…… 题解列表 2024年12月29日 2 点赞 0 评论 292 浏览 评分:10.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 评论 393 浏览 评分: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 评论 476 浏览 评分: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 评论 527 浏览 评分:0.0
结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct { char num[20]; char name[20]; int score[3…… 题解列表 2024年12月29日 3 点赞 0 评论 693 浏览 评分:0.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 188 浏览 评分: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 评论 277 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 624 浏览 评分:0.0
real_count经典命名 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int flag[100] = {0}; …… 题解列表 2024年12月28日 0 点赞 0 评论 227 浏览 评分:0.0
一定要细心啊(不难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n; printf("Please enter the number…… 题解列表 2024年12月28日 1 点赞 0 评论 262 浏览 评分:0.0