信息学奥赛一本通T1347-格子游戏 摘要:```cpp #include using namespace std; const int MAXN=5e6; int Father[MAXN]; int n,m,x,y; …… 题解列表 2023年08月28日 0 点赞 0 评论 668 浏览 评分:4.7
题解 2544: N以内累加求和 摘要:解题思路:把N以内的每一个数(循环变量i)一个一个加到同一个变量(s),变量(s)一开始需要赋初始值0;编程步骤:1、创建2个int类型的变量n、s=0;2、输入一个整数n;3、for循环遍历(1~n…… 题解列表 2023年10月30日 0 点赞 0 评论 334 浏览 评分:4.7
2784收集瓶盖赢大奖题解 (c++) 摘要:#include using namespace std; int main(){ int a; int b; cin>>a>>b; if (a>=10){ cout…… 题解列表 2023年11月02日 0 点赞 0 评论 281 浏览 评分:4.7
判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if(a>=10 &&…… 题解列表 2023年11月13日 0 点赞 4 评论 463 浏览 评分:4.7
2812: 球弹跳高度的计算 摘要:解题思路:注意事项:令人忍俊不禁参考代码:height=float(input())sum=-heightsum=float(sum)for i in range(1,11): sum=sum+…… 题解列表 2023年11月20日 0 点赞 0 评论 574 浏览 评分:4.7
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年11月30日 0 点赞 0 评论 265 浏览 评分:4.7
LJX............................................................... 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,a,b,sum=0,ans=0; cin>>…… 题解列表 2023年12月06日 0 点赞 0 评论 232 浏览 评分:4.7
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(int n){ scanf("%d",&n); int a[n][n],i,j; for(i=0;i<…… 题解列表 2023年12月15日 0 点赞 0 评论 291 浏览 评分:4.7
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:这里要比较六次参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >> a>>…… 题解列表 2023年12月17日 0 点赞 0 评论 307 浏览 评分:4.7
JAVA 糖果游戏升级版 摘要:解题思路:如果换成动态的n,不指定5 可能 6 7 8 9用数组来存储数据,先判断加减后是否超过左边界或者右边界如果超出进行数组下标调整注意事项:参考代码:import java.util.Sca…… 题解列表 2023年12月17日 0 点赞 0 评论 301 浏览 评分:4.7