摘要:
Codeforces Round #686 (Div. 3) A. Special Permutation Solution: 偶数直接倒序,奇数将前$n - 1$个倒序,最后将1和n互换位置。 Code: #include <iostream> using namespace std; int m 阅读全文
摘要:
Atcoder Beginner Contest 184 A-Determinant Solution: 输出$ad-bc$ #include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> 阅读全文
摘要:
AtCoder Beginner Contest 183 F-Confluence Problem Statement \(N\) students are about to go to school. Student \(i\) belongs to Class \(C_i\). After le 阅读全文
摘要:
D:Returning Home-Codeforces Round #675 (Div. 2) Problem: Yura has been walking for some time already and is planning to return home. He needs to get h 阅读全文
摘要:
Equilibrium Mobile(UVA-12166) Problem A mobile is a type of kinetic sculpture constructed to take advantage of the principle of equilibrium. It consis 阅读全文