摘要:
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() 阅读全文
摘要:
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 , 阅读全文
摘要:
A - 生活大爆炸版石头剪刀布 B - 联合权值 C - 飞扬的小鸟 D - 无线网络发射器选址 E - 寻找道路 F - 廊桥分配 G - 格雷码 A - 生活大爆炸版石头剪刀布 这套题就是注意处理一下输赢关系就好了 #include <bits/stdc++.h> using namespace 阅读全文