よじろめ覚書

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

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

ABC112A - Programming Education

ABC

問題:A - Programming Education #include <iostream> using namespace std; int main(void) { int n, a, b; cin.tie(0); ios::sync_with_stdio(false); cin >> n; if (n == 1) { cout << "Hello World" << "\n"; } else { cin >> a >> b; cout << a + b << "\n"; } r</iostream>…

ABC111B - AtCoder Beginner Contest 111

ABC

問題:B - AtCoder Beginner Contest 111 #include <iostream> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) int main(void) { int n; cin.tie(0); ios::sync_with_stdio(false); cin >> n; FOR(i, n , 1000) { if (i == (i / 100) * 1</iostream>…

ABC111A - AtCoder Beginner Contest 999

ABC

問題:A - AtCoder Beginner Contest 999 #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { string n; cin.tie(0); ios::sync_with_stdio(false); cin >> n; REP(i, n.length()) { if (n[i] == </string></iostream>…