よじろめ覚書

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

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

ABC059B - Comparison

ABC

問題:B - Comparison #include <iostream> #include <string> using namespace std; int main(void) { const string ret[3] = {"GREATER", "LESS", "EQUAL"}; string a, b; int rank = 2; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b; if (a.length() > b.length</string></iostream>…

ABC059A - Three-letter acronym

ABC

問題:A - Three-letter acronym #include <cctype> #include <iostream> #include <string> using namespace std; int main(void) { string a, b, c, ans = ""; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> c; ans += toupper(a[0]); ans += toupper(b[0]); ans += to</string></iostream></cctype>…