よじろめ覚書

私の理解度重視のソースコードです。

2019-08-11から1日間の記事一覧

ABC052B - Increment Decrement

ABC

問題:B - Increment Decrement #include <algorithm> #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { int n, x = 0, max_x = 0; string s; cin.tie(0); ios::sync_with_stdio(false); cin >> n; cin >> </string></iostream></algorithm>…

ABC052A - Two Rectangles

ABC

問題:A - Two Rectangles #include <algorithm> #include <iostream> using namespace std; int main(void) { int a, b, c, d; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> c >> d; cout << max(a * b, c * d) << "\n"; return 0; }</iostream></algorithm>