上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页
摘要: A. Garland 分类讨论 #include <bits/stdc++.h> using namespace std; void solve(){ string s; cin >> s; map<char,int> cnt; for( auto c : s ) cnt[c]++; if( cnt 阅读全文
posted @ 2023-04-03 19:40 PHarr 阅读(31) 评论(0) 推荐(0) 编辑
摘要: A - Good morning #include <bits/stdc++.h> using namespace std; int32_t main() { int a , b , c , d; int ta , ao; cin >> a >> b >> c >> d; ta = a * 60 * 阅读全文
posted @ 2023-03-29 22:34 PHarr 阅读(17) 评论(0) 推荐(0) 编辑
摘要: A - Probably English #include <bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') && ch 阅读全文
posted @ 2023-03-28 21:24 PHarr 阅读(116) 评论(0) 推荐(1) 编辑
摘要: Cow Bowling 简单 dp,f[i][j]到达第i行第j列的最大值 #include<iostream> #include <vector> #include <algorithm> using namespace std; #define int long long int read() 阅读全文
posted @ 2023-03-27 21:08 PHarr 阅读(8) 评论(0) 推荐(0) 编辑
摘要: L1-1 谢谢卡尔! print("谢谢卡尔!\\(>_<)/") L1-2 现在是,幻想时间! #include <bits/stdc++.h> using namespace std; int main(){ double a , b; cin >> a >> b; printf("%.3lf" 阅读全文
posted @ 2023-03-26 14:43 PHarr 阅读(55) 评论(0) 推荐(0) 编辑
摘要: A. Prepend and Append 如果两段字符不同就可以删掉,如果不能删了就是最初的字符串 #include <bits/stdc++.h> using namespace std; void solve() { int n; string s; cin >> n >> s; int l 阅读全文
posted @ 2023-03-21 21:00 PHarr 阅读(32) 评论(0) 推荐(0) 编辑
摘要: A. Plus or Minus #include <bits/stdc++.h> using namespace std; int32_t main() { ios::sync_with_stdio(false) , cin.tie(nullptr) , cout.tie(nullptr); in 阅读全文
posted @ 2023-03-20 20:18 PHarr 阅读(75) 评论(0) 推荐(0) 编辑
摘要: A - Swap Odd and Even #include<bits/stdc++.h> using namespace std; int32_t main(){ string s; cin >> s; for( int i = 0 ; i + 1 < s.size() ; i += 2 ) sw 阅读全文
posted @ 2023-03-19 21:11 PHarr 阅读(14) 评论(0) 推荐(0) 编辑
摘要: A. Hall of Fame 统计一下向左照的最靠右和向右照的最靠左的看是否可以把所有的位置都覆盖 #include <bits/stdc++.h> using namespace std; int read(){ int x = 0 , ch = getchar(); while( ch < ' 阅读全文
posted @ 2023-03-15 21:55 PHarr 阅读(28) 评论(0) 推荐(0) 编辑
摘要: A - Two Rectangles 比大小 #include<bits/stdc++.h> using namespace std; int32_t main(){ int a , b , c , d ; cin >> a >> b >> c >> d; cout << max( a * b , 阅读全文
posted @ 2023-03-09 16:58 PHarr 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页