牛客116735491号
牛客116735491号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客116735491号的博客
全部文章
(共22篇)
题解 | A + B
#include <bits/stdc++.h> using namespace std; int Cheng(string s) { int a; if (s == "one") { a = 1; } else if (s =...
2025-04-03
0
23
题解 | 寻找大富翁
#include <bits/stdc++.h> using namespace std; bool cmp(int a, int b) { return a > b; } int main() { int n, m; while (cin >>...
2025-04-03
0
22
题解 | Grading
#include <bits/stdc++.h> using namespace std; // 对数以万计的考研试卷进行评分是一项艰巨的工作。设计一个尽可能公平的评价过程更加困难。一种方法是让每个考试问题分配给3位独立专家。如果他们对结果不一致,则邀请裁判做出最终决定。现在,您被要求编...
2025-04-03
0
22
题解 | 日期差值
#include <iostream>//计算两个日期相对于0000 00 00的差值 using namespace std; int m[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; struct date { ...
2025-04-03
0
24
题解 | Prime Number
#include <iostream> using namespace std; int su(int k) { for (int i = 2; i * i <= k; i++) { if (k % i == 0) return 0;...
2025-04-02
0
31
题解 | 数字反转
#include <bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a >> b) { // 注意 while 处理多个 case ...
2025-04-02
0
16
题解 | Simple Sorting
#include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { // 注意 while 处理多个 case set<int>...
2025-04-02
0
19
题解 | 鸡兔同笼
#include <iostream> using namespace std; int main() { int a; while (cin >> a) { // 注意 while 处理多个 case if (a % 2 != 0)cout...
2025-04-02
0
30
题解 | 字符串排序
#include <bits/stdc++.h> using namespace std; bool cmp(string a, string b) { return a.size() < b.size(); } int main() { int n; wh...
2025-04-02
0
27
题解 | 采药
#include <bits/stdc++.h> using namespace std; int main() { int t, m; while (cin >> t >> m) { // 注意 while 处理多个 case ...
2025-04-02
0
22
首页
上一页
1
2
3
下一页
末页