よじろめ覚書

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

2019-07-04から1日間の記事一覧

ABC033A - 暗証番号

ABC

問題:A - 暗証番号 #include <cstdio> #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { string n; bool flg = false; cin >> n; REP(i, n.length() - 1) { if (n[i] != n[i + 1]) { flg = true; } } i</string></iostream></cstdio>…