1112: C语言考试练习题_一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin >> a >> b…… 题解列表 2021年12月17日 0 点赞 0 评论 429 浏览 评分:0.0
使用函数的定义和调用 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int x=0,y;void cst();/* run this program using…… 题解列表 2021年12月17日 0 点赞 0 评论 281 浏览 评分:0.0
【出圈】-另类简单解法 摘要:解题思路: 在数组中将所有人从1到n编号,报数到的第b个人出圈(对其赋大值然后sort),始终在n+1-b个人中报数参考代码: 1 #include<iostream>…… 题解列表 2021年12月17日 0 点赞 0 评论 328 浏览 评分:9.9
1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s,s1,s2; for(int i=10…… 题解列表 2021年12月17日 0 点赞 0 评论 351 浏览 评分:0.0
盾神与积木游戏 结构体与优先队列 摘要: #### 利用优先队列的自动排序,将每个人按照需要的积木数量排序,在获取数据时若持有数大于目标数则不将其塞进优先队列里面。 ##### 用while循环判断遍历优先队列里面的最小所需数是否小于总…… 题解列表 2021年12月17日 0 点赞 0 评论 708 浏览 评分:9.9
字符串解题,代码简短简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str; getline(cin,…… 题解列表 2021年12月16日 0 点赞 0 评论 694 浏览 评分:0.0
简单方法计算最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a=0,b=0,c=0; cin>>a>…… 题解列表 2021年12月16日 0 点赞 0 评论 530 浏览 评分:9.9
不需要数组,简单运算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a=0 , n=0 , m=0; flo…… 题解列表 2021年12月16日 0 点赞 0 评论 329 浏览 评分:0.0
一行代码解决,有帮助给个5星 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ for(int i=1;i<=9;i++){ …… 题解列表 2021年12月16日 0 点赞 0 评论 350 浏览 评分:0.0
简单题,但也要注意一下审题 摘要:解题思路:注意事项:这题其他的没啥很简单主要注意一下结束循环后sum分两种情况,一种是恰好相等,另一种是大于n。参考代码:#include <iostream>#include<cmath>using…… 题解列表 2021年12月16日 0 点赞 0 评论 372 浏览 评分:0.0