〔主机註記〕第 38 周主机註記 (Oct.21 - Oct.27)
第 38 周主机註記 月曜日 (Oct.28) 一 怯战 tourist 今天来了吗?没。真怯战啊!今天小 t == 野羊了。 没当怯战蜥蜴已小胜 tourist,此为一胜。 二 快说 野羊「主机快说,cmg 不听我建议……主机,主机,呼叫主机!」感觉这简直是什么光明会羞辱仪式。。。好抽象。 三 油管 「为什么油管上还有讲中文的……能不能回答一下我的问题!」为什么 B 站有讲英文的?你也可以在油管上讲中文,你为什么讲了,他们就为什么讲了 四 瓶颈 我好像就没有思考过。从今天考信号开始,信号也是眼睛在动手在动,脑子没有,认真想了反而想不出来,不如凭感觉做。直觉流派。 最近还是不想写题,学什么都学不会的感觉。但素你一直在上分,意思就是这个瓶颈期过去了就橙了。而且瓶颈期之所以叫瓶颈期就是因为迟早会过去的。 我的思维还需要微妙地提升一下下。我的所有都需要微妙地提升一下下。 五 鉴定 鉴定为大一翘课了。你鉴定对了。欠的课是要补的,就像我的二分。 我现在 lowerbound...
Educational Codeforces Round 171
A. Perpendicular Segments 矩形里最长的两段垂直线段是最大正方形的对角线。 12345678910111213141516171819202122232425#include <iostream>#include <algorithm>#include <vector>using namespace std;using ll = long long;int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { int x, y, k; cin >> x >> y >> k; int s = min(x, y); cout << "0 0 " << s << " "...
Codeforces Global Round 27 A-D
A. Sliding 12345678910111213141516171819202122#include <bits/stdc++.h>using namespace std;using ll = long long;int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { ll n, m, r ,c; cin >> n >> m >> r >> c; ll ans = (n - r) * (2 * m - 1); ans += (m - c); cout << ans << "\n"; } return 0;} B. Everyone Loves Tres 依据样例,奇数是...
Codeforces Round 982 (Div. 2)
A. Rectangle Arrangement 取最大值的正确性:凸阶梯形平移后即是矩形,其周长与矩形周长相等。 123456789101112131415161718192021222324252627#include <bits/stdc++.h>using namespace std;using ll = long long;int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { int n; cin >> n; int X = 0, Y = 0; while (n--) { int x, y; cin >> x >> y; X = max(X, x); Y = max(Y, y);...
Codeforces Round 981 (Div. 3)
如果没有特殊情况,以后每场 CF 都会写题解 > < A. Sakurako and Kosuke 奇偶题。 1234567891011121314151617181920#include <bits/stdc++.h>using namespace std;using ll = long long;int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { int n; cin >> n; cout << (n & 1 ? "Kosuke" : "Sakurako") << "\n"; } return 0;} B. Sakurako and Water 统计 2n−12n-12n−1...
数据结构第七讲:二叉树基本概念
數據結構第七講:二叉樹基本概念
〔主机註記〕第 37 周主机註記 (Oct.21 - Oct.27)
第 37 周主机註記 月曜日 (Oct.21) 火曜日 (Oct.22) 水曜日 (Oct.23) 木曜日 (Oct.24) 金曜日 (Oct.25) 土曜日 (Oct.26) 日曜日 (Oct.27)
[和師姐一起學數學]信号与系统 第三章 离散时间系统的时域分析
信號與系統 第三章 離散時間系統的時域分析
Codeforces Round 980 (Div2A-Div1C)
2A. Profitable Interest Rate 12345678910111213141516171819#include <bits/stdc++.h>using namespace std;int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { int a, b; cin >> a >> b; cout << max(0, a >= b ? a : 2 * a - b) << "\n"; } return 0;} 2B. Buying Lemonade 12345678910111213141516171819202122232425262728293031323334#include...
数据结构第六讲:树的基本概念
數據結構第六講:樹的基本概念