2019-12-13から1日間の記事一覧
問題: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>
問題: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>…