上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页
摘要: AcWing 4800. 下一个 签到 #include <bits/stdc++.h> using namespace std; int32_t main() { int x; cin >> x; auto f = []( int x){ set<int> a; for( int y ; x > 阅读全文
posted @ 2023-02-06 16:39 PHarr 阅读(14) 评论(0) 推荐(0) 编辑
摘要: A - Many A+B Problems 签到 #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n ; cin >> n; for( int a , b ; n ; n 阅读全文
posted @ 2023-02-06 16:27 PHarr 阅读(60) 评论(0) 推荐(0) 编辑
摘要: AcWing 4803. 满足的数 n = int(input()) a = list( map( int , input().split(' ') ) ) s = 0 for i in a : s += i res = 0 for x in range( 1 , 5+1 ) : if ( s + 阅读全文
posted @ 2023-02-05 23:38 PHarr 阅读(18) 评论(0) 推荐(0) 编辑
摘要: A. Polycarp and the Day of Pi 先纯一下圆周率前30位,然后暴力就好了 #include <bits/stdc++.h> using std::cin; using std::cout; using std::string; int read(){...} const s 阅读全文
posted @ 2023-01-29 16:39 PHarr 阅读(74) 评论(0) 推荐(0) 编辑
摘要: A - Children and Candies (ABC Edit) n = int(input()) print( n * (n+1) // 2 ) B - Unhappy Hacking (ABC Edit) 用栈模拟一下?但是栈的遍历比较麻烦这里用vector实现 #include<bits 阅读全文
posted @ 2023-01-18 18:32 PHarr 阅读(31) 评论(0) 推荐(0) 编辑
摘要: A - Fighting over Candies 签到 #include <bits/stdc++.h> using namespace std; int read(){...} const int N = 1e6+5; int main(){ int a = read() , b = read( 阅读全文
posted @ 2023-01-18 18:12 PHarr 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Day 1 AcWing 4455. 出行计划 通过差分的方式计算出每个时刻做核酸产生的贡献,然后$O(1)$的回答就好了 #include <bits/stdc++.h> using namespace std; const int N = 4e5+5; int n , m , k , b[N]; 阅读全文
posted @ 2023-01-16 11:25 PHarr 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Day 1 今天主要是在补题,然后参加camp。感觉今天讲的题都好难。 Day 2 今天camp休息,所以打了一场vp哈尔滨 Day 3 AtCoder Beginner Contest 042 打算开始板刷一下atc,计划香港后每周三套的强度。 题解 Day 4 今天是参加camp,然后自己vp了 阅读全文
posted @ 2023-01-16 11:24 PHarr 阅读(30) 评论(0) 推荐(0) 编辑
摘要: A - Iroha and Haiku (ABC Edition) #include<bits/stdc++.h> using namespace std; int32_t main() { int a = 2 , b = 1; for( int i = 1 , x ; i <= 3 ; i ++ 阅读全文
posted @ 2023-01-12 13:46 PHarr 阅读(36) 评论(0) 推荐(0) 编辑
摘要: A - Mix Juice 排个序再求和就好 #include<bits/stdc++.h> using namespace std; int read(){...} int32_t main(){ int n = read() , k = read(); vector<int> a(n); for 阅读全文
posted @ 2023-01-11 14:29 PHarr 阅读(68) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页