摘要:
https://voj.mobi/contest/242/problems,密码2024ecnutsol A - 调和与折中 #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long lon 阅读全文
摘要:
B. Balloon Darts 首先上一些计算几何的板子。 如果\(k\)条直线覆盖\(n\)个点成立的,则有两种情况。如果\(n \le k\)则一定成立,反之在前\(k+1\)个点中必然存在两个点被一条直线经过,我们可以枚举出这条直线,然后暴力的删掉点,然后递归做。 #include <bit 阅读全文
摘要:
A. Maximum Element In A Stack 按照题目模拟就好,栈内的最大值可以维护单调栈解决。 #include <bits/stdc++.h> using namespace std; using i64 = long long; using ui32 = unsigned int 阅读全文
摘要:
A-超级闪光牛可乐 #include <bits/stdc++.h> using namespace std; using f64 = double_t; using i32 = int32_t; using i64 = int64_t; using u64 = uint64_t; #define 阅读全文
摘要:
A. Stickogon #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; #define int i64 using vi = vector<int>; const i 阅读全文
摘要:
https://codeforces.com/gym/104883 A #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using vi = vector<int>; 阅读全文
摘要:
A - Legendary Players #include<bits/stdc++.h> using namespace std; int main() { map<string, string> h; h["tourist"] = "3858"; h["ksun48"] = "3679"; h[ 阅读全文
摘要:
A - Divisible #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; #define int i64 using vi = vector<i64>; using 阅读全文
摘要:
题单链接 A - Frog 1 问题陈述 有\(N\)块石头,编号为\(1, 2, \ldots, N\)。每块\(i\)(\(1 \leq i \leq N\)),石头\(i\)的高度为\(h_i\)。 有一只青蛙,它最初在石块 \(1\) 上。它会重复下面的动作若干次以到达石块\(N\): 如果 阅读全文
摘要:
题单 A - 0的个数 这题算是一个思维题。 我的做法是就是统计每一位的 0 有多少个。 例如\(4032\) 个位的零有\(403\)种 十位的零有\(40*10\)种 百位的零有\(3*100 + 33\)种,即千位去\([1,3]\)个位低两位取\([00,99]\),或者千位取\(4\)低两 阅读全文