上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页
摘要: # A - Order Something Else ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false), cin.tie(nullptr), 阅读全文
posted @ 2023-07-18 19:39 PHarr 阅读(36) 评论(0) 推荐(0)
摘要: # A. Vika and Her Friends 枚举所有的点,判断是否存在点与Vika的距离和其他 k 个人的距离的奇偶性不同。 ```cpp #include using namespace std; #define int long long const int mod = 99824435 阅读全文
posted @ 2023-07-18 17:00 PHarr 阅读(40) 评论(0) 推荐(0)
摘要: # A. Telephone Number 找到第一个 8 ```cpp #include using namespace std; #define int long long const int mod = 998244353; #define mp make_pair void solve() 阅读全文
posted @ 2023-07-18 09:55 PHarr 阅读(19) 评论(0) 推荐(0)
摘要: # A - Filter ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false) , cin.tie(nullptr) , cout.tie(nul 阅读全文
posted @ 2023-07-14 17:39 PHarr 阅读(18) 评论(0) 推荐(0)
摘要: # RC-v1 您好呀 ```python print("Nin Hao Ya ~") ``` # RC-v2 爷爷奶奶您好呀 ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_ 阅读全文
posted @ 2023-07-14 13:19 PHarr 阅读(166) 评论(0) 推荐(0)
摘要: # A. Curriculum Vitae 因为`1`之后不能出现`0`,所以求一下前缀`0`的个数和后缀`1`的个数,然后枚举第一个`1`的位置即可 ```cpp #include using namespace std; #define int long long int32_t main() 阅读全文
posted @ 2023-07-13 15:57 PHarr 阅读(37) 评论(1) 推荐(1)
摘要: # A. Subtraction Game 答案就是`a+b`此时后手必胜因为无论怎么操作后手都可保证自己取的时候一次全部取完 ```cpp #include using namespace std; void solve(){ int a , b; cin >> a >> b; cout > t; 阅读全文
posted @ 2023-07-13 11:48 PHarr 阅读(42) 评论(0) 推荐(0)
摘要: # RC-u1 不要浪费金币 ```cpp #include using namespace std; int main() { ios::sync_with_stdio(false) , cin.tie(nullptr) , cout.tie(nullptr); int n , m , res = 阅读全文
posted @ 2023-07-12 14:57 PHarr 阅读(434) 评论(0) 推荐(1)
摘要: # A. Treasure Hunt ```cpp #include using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch '9') && ch != '-') ch = getchar(); i 阅读全文
posted @ 2023-07-11 15:49 PHarr 阅读(33) 评论(0) 推荐(0)
摘要: # Saruman's Army 首先对序列排序,然后逐个考虑覆盖,如果要覆盖当前的点,则标记点越靠后越好,所有向后找$R$,选择最靠后的标记,然后从标记点开始在向后找$R$也是被标记过的,直接跳过 ```cpp #include #include using namespace std; int 阅读全文
posted @ 2023-07-11 10:49 PHarr 阅读(22) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页