给我就亿下
给我就亿下
全部文章
分类
归档
标签
去牛客网
登录
/
注册
给我就亿下的博客
全部文章
(共47篇)
题解 | #寻找大富翁#
#include <iostream> #include <algorithm> using namespace std; bool cmp (int x, int y){ return x > y; } int main () { int n, m; wh...
2023-03-19
0
351
题解 | #Simple Sorting#
#include <iostream> #include <algorithm> using namespace std; const int MAXN = 1000 + 10; int arr[MAXN]; int main () { int n; while(c...
2023-03-18
0
372
题解 | #鸡兔同笼#
#include <iostream> using namespace std; int maxNum (int n){ if (n % 2 == 1){ return 0; }else{ return n / 2; } } int minNum (int n){ ...
2023-03-18
1
364
题解 | #求平均年龄#
#include <stdio.h> using namespace std; int main () { int n; int arr[101]; double sum = 0; double ave = 0; while (scanf ("%d", &n) != EOF...
2023-03-18
0
280
题解 | #中位数#
#include <iostream> #include <algorithm> using namespace std; const int MAXN = 10000 + 10; int arr[MAXN]; int main () { int n; while...
2023-03-17
0
371
题解 | #查找学生信息#
#include <iostream> #include <iostream> using namespace std; struct Student{ string num; string name; string sex; int age; }; Stude...
2023-03-16
0
307
题解 | #剩下的树#
#include <iostream> #include <algorithm> using namespace std; struct Range { int from; int to; }; bool compare (Range x, Range y){ i...
2023-03-16
0
333
题解 | #求最大最小数#
//KY13 #include <iostream> #include <climits> using namespace std; const int MAXN = 10000; int list[MAXN]; int main () { int n; while...
2023-03-16
0
308
题解 | #成绩排序#
#include <iostream> #include <algorithm> using namespace std; struct Student { int id; int score; }; Student stu[101]; bool co...
2023-03-16
0
290
题解 | #反序输出#
#include <iostream> #include <string> using namespace std; int main () { string str; while (cin >> str){ for (int i = 3; i >...
2023-03-16
1
335
首页
上一页
1
2
3
4
5
下一页
末页