上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: // 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 阅读(29) 评论(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)
摘要: 获取map的第一个和最后一个元素,分别使用begin()和-- end()访问。 // 9'21" #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<int,int> hash; for(i 阅读全文
posted @ 2024-08-19 22:01 Frodnx 阅读(15) 评论(0) 推荐(0)
摘要: 如果是测试点2卡住的话,可以试试以下样例。 输入样例 : 5 2 easy L1 easy L2 easy L3 ez L4 ez L5 输出样例 : Wo AK le 代码: // long #include <bits/stdc++.h> using namespace std; bool fu 阅读全文
posted @ 2024-08-19 21:49 Frodnx 阅读(36) 评论(0) 推荐(0)
摘要: // 5'04" #include <bits/stdc++.h> using namespace std; const int N = 24; int arr[N]; int main() { for(int i = 0; i <= 23; ++ i) cin >> arr[i]; int num 阅读全文
posted @ 2024-08-17 19:15 Frodnx 阅读(20) 评论(0) 推荐(0)
摘要: // 1'56" #include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; for(int i = 1; i <= n; ++ i) { double d; cin >> d; if(d < 阅读全文
posted @ 2024-08-17 01:16 Frodnx 阅读(39) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页