よじろめ覚書

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

2019-09-02から1日間の記事一覧

ABC063B - Varied

ABC

問題:B - Varied #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { string s; bool findFlg = false, usedFlg[26] = {false}; cin.tie(0); ios::sync_with_stdio(false); cin >> s; REP(i, s.l</string></iostream>…

ABC063A - Restricted

ABC

問題:A - Restricted #include <iostream> using namespace std; int main(void) { int a, b; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b; if (a + b >= 10) { cout << "error" << "\n"; } else { cout << a + b << "\n"; } return 0; }</iostream>