牛客568792594号
牛客568792594号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客568792594号的博客
全部文章
(共64篇)
题解 | #百鸡问题#
#include <bits/stdc++.h> using namespace std; int main(){ int n; while (cin >> n){ for (int x=0; x<=100; x++){ for (int y=0; y...
2024-03-05
0
171
题解 | #谁是你的潜在朋友#
#include <bits/stdc++.h> using namespace std; const int M = 210; const int N = 1e6; int book[M]; int reader[N]; int main(){ int n, m; cin...
2024-03-05
0
205
题解 | #开门人和关门人#
#include <bits/stdc++.h> using namespace std; typedef struct People{ string num; string open_time; string close_time; }People; vector<...
2024-03-05
0
183
题解 | #统计同成绩学生人数#
#include <bits/stdc++.h> using namespace std; const int N = 110; int cnt[N]; int main(){ int n; while (cin >> n){ if (n == 0) br...
2024-03-05
0
178
题解 | #子串计算#
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ULL; const int N = 200, P = 13331; ULL p[N], h[N]; ULL get(int l, i...
2024-03-05
0
201
题解 | #搬水果#
#include <bits/stdc++.h> using namespace std; int main(){ int n; while (cin >> n){ if (n == 0){ break; } priority_queue<...
2024-03-04
0
202
题解 | #复数集合#
#include <bits/stdc++.h> using namespace std; typedef struct PIS{ int mo; int b; string in_num; friend bool operator<(PIS s1, PIS s2)...
2024-03-04
0
185
题解 | #堆栈的使用#
#include <bits/stdc++.h> using namespace std; stack<int> stk; int main(){ int n; while (cin >> n){ while (n --){ string op;...
2024-03-04
0
154
题解 | #简单计算器#
#include <bits/stdc++.h> using namespace std; stack<char> op; stack<double> num; unordered_map<char, int> pr; void eval(){ ...
2024-03-04
1
205
题解 | #完数VS盈数#
#include <bits/stdc++.h> using namespace std; vector<int> wan; vector<int> yin; bool is_wan(int x){ int sum = 0; for (int i=1; ...
2024-03-02
0
160
首页
上一页
1
2
3
4
5
6
7
下一页
末页