摘要: 题目描述弯弯绕绕,总结如下:天梯赛分数不够的直接不要,PAT面试分数够s的直接要,剩余人分数相同的只要k个。 // 13'55" #include <bits/stdc++.h> using namespace std; int main() { int n, k, s; cin >> n >> k 阅读全文
posted @ 2024-08-20 21:48 Frodnx 阅读(43) 评论(0) 推荐(0)
摘要: 无论技能释放在哪一行,并不影响剩余格子数量,只需统计出现了多少不同的行和列 #include <bits/stdc++.h> using namespace std; int main() { int n, m, q; cin >> n >> m >> q; map<int,bool> hash1, 阅读全文
posted @ 2024-08-20 21:31 Frodnx 阅读(33) 评论(0) 推荐(0)
摘要: // 4'34" #include <bits/stdc++.h> using namespace std; string func(string s) { string res; for(int i = 1; i < s.size(); ++ i) if((s[i] - '0') % 2 == ( 阅读全文
posted @ 2024-08-20 16:02 Frodnx 阅读(28) 评论(0) 推荐(0)
摘要: // 10'30" #include <bits/stdc++.h> using namespace std; bool arr[10][10]; int main() { for(int i = 1; i <= 6; ++ i) { int tmp; cin >> tmp; arr[i][tmp] 阅读全文
posted @ 2024-08-20 14:56 Frodnx 阅读(39) 评论(0) 推荐(0)
摘要: // 1'21" #include <iostream> using namespace std; #define int long long signed main() { int n, m; cin >> n >> m; int s = n + m; int sum = 1; for(int i 阅读全文
posted @ 2024-08-20 01:07 Frodnx 阅读(62) 评论(0) 推荐(0)
摘要: 逆天10分题,做题细心一点 // 10'16" #include <bits/stdc++.h> using namespace std; int main() { int jin, pei, xun1, xun2; cin >> jin >> pei >> xun1 >> xun2; int m 阅读全文
posted @ 2024-08-20 01:05 Frodnx 阅读(30) 评论(0) 推荐(0)
摘要: // 49" #include <iostream> using namespace std; int main() { int n, v; cin >> n >> v; cout << n / v; return 0; } ··· 阅读全文
posted @ 2024-08-20 00:53 Frodnx 阅读(24) 评论(0) 推荐(0)
摘要: 前天 != 前一天(笑) print("I'm gonna win! Today!") print("2022-04-23") 阅读全文
posted @ 2024-08-20 00:52 Frodnx 阅读(19) 评论(0) 推荐(0)
摘要: 注意:不是每次找数组最后两个元素做乘积! // 11'39" #include <bits/stdc++.h> using namespace std; void func(vector<int>& v, int now) { int num = v[now] * v[now - 1]; vecto 阅读全文
posted @ 2024-08-20 00:50 Frodnx 阅读(23) 评论(0) 推荐(0)