よじろめ覚書

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

2019-10-30から1日間の記事一覧

ABC092A - Traveling Budget

ABC

問題:A - Traveling Budget #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; cin >> b; cin >> c; cin >> d; cout << min(a, b) + min(c, d) << "\n"; return 0; }</iostream></algorithm>

ABC091B - Two Colors Card Game

ABC

問題:B - Two Colors Card Game #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, m, ans = 0, score = 0; string s[100], t[100]; cin.tie(0); ios::sync_with_stdio(false)</string></iostream></algorithm>…