2833: 金币(先5星再复制) 摘要:解题思路:一天一天for注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int i,n,a,sum,d…… 题解列表 2023年01月04日 0 点赞 0 评论 326 浏览 评分:9.9
c++定义宏简单求余 摘要:解题思路:通过定义宏:#define quiYu(a,b) c=a%b //我英语不好,求余(quiYu)注意事项: 求余数:% 求除数:/参考代码:#include<i…… 题解列表 2023年01月04日 0 点赞 0 评论 299 浏览 评分:0.0
2152: 信息学奥赛一本通T1324-整数区间 摘要:解题思路:爱要不要,满星好评注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; struct hd{ int ks,j…… 题解列表 2023年01月04日 0 点赞 0 评论 359 浏览 评分:8.0
2151: 信息学奥赛一本通T1323-活动选择 摘要:解题思路:贪心注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n,x,z; struct huodong { int …… 题解列表 2023年01月04日 1 点赞 0 评论 335 浏览 评分:9.9
2150: 信息学奥赛一本通T1322-拦截导弹问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[10000],l[10000],n=0,k=0;int x; …… 题解列表 2023年01月04日 0 点赞 0 评论 320 浏览 评分:9.9
循环入门练习1 摘要:解题思路:用循环计算即可;注意事项:参考代码:#include<iostream> using namespace std; int main() { int s=0; fo…… 题解列表 2023年01月04日 0 点赞 0 评论 284 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:解题思路:创建一个二维数组。注意事项:首先要注意矩阵为偶数和奇数输出的答案是不一样的,因此要分情况讨论。矩阵为偶数时,直接输出,两条对角线相加,矩阵为奇数时,两条对角线相交的那个位置的值会重复加多一次…… 题解列表 2023年01月03日 0 点赞 0 评论 357 浏览 评分:0.0
A+B Problem题解 摘要:解题思路:无注意事项:无参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)co…… 题解列表 2023年01月03日 0 点赞 0 评论 447 浏览 评分:6.0
2148: 信息学奥赛一本通T1320-均分纸牌 摘要:解题思路:必须要贪心,必须要贪心,必须要贪心,(重要的事说三遍)要做一个贪心一哥! 要就复制吧,爱就点赞吧!注意事项:参考代码:#include<bits/stdc++.h> using name…… 题解列表 2023年01月03日 0 点赞 0 评论 406 浏览 评分:9.9
计算多项式的值(注意事项) 摘要:解题思路:注意事项: 输入仅一行,包含5个实数,分别是x,及参数a、b、c、d的值,每个数都是绝对值不超过100的双精度浮点数。这里的每个数都是绝对值不超过100的双精度浮点数。指的是a、b、c、d并…… 题解列表 2023年01月03日 0 点赞 0 评论 361 浏览 评分:0.0