よじろめ覚書

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

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

ABC114A - 753

ABC

問題:A - 753 #include <iostream> using namespace std; int main(void) { int x; cin.tie(0); ios::sync_with_stdio(false); cin >> x; cout << (x == 7 || x == 5 || x == 3? "YES" : "NO") << "\n"; return 0; }</iostream>

ABC113B - Palace

ABC

問題:B - Palace #include <cstdlib> #include <iostream> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { const int INF = 1 << 30; int n, t, a, h, min_a = INF, min_pos = 0; cin.tie(0); ios::sync_with_stdio(false); cin >> n</iostream></cstdlib>…