摘要:
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 阅读全文
摘要:
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 * 阅读全文
摘要:
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 阅读全文
摘要:
Cow Bowling 简单 dp,f[i][j]到达第i行第j列的最大值 #include<iostream> #include <vector> #include <algorithm> using namespace std; #define int long long int read() 阅读全文
摘要:
L1-1 谢谢卡尔! print("谢谢卡尔!\\(>_<)/") L1-2 现在是,幻想时间! #include <bits/stdc++.h> using namespace std; int main(){ double a , b; cin >> a >> b; printf("%.3lf" 阅读全文
摘要:
A. Prepend and Append 如果两段字符不同就可以删掉,如果不能删了就是最初的字符串 #include <bits/stdc++.h> using namespace std; void solve() { int n; string s; cin >> n >> s; int l 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
A. Hall of Fame 统计一下向左照的最靠右和向右照的最靠左的看是否可以把所有的位置都覆盖 #include <bits/stdc++.h> using namespace std; int read(){ int x = 0 , ch = getchar(); while( ch < ' 阅读全文
摘要:
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 , 阅读全文