よじろめ覚書

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

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

ABC040B - □□□□□

ABC

問題:B - □□□□□ #include <algorithm> #include <iostream> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) int main(void){ int n, h, w, r, ans; cin.tie(0); ios::sync_with_stdio(false); cin >> n; ans = n; FOR(i, 1, n + 1) { h = i; w = n </iostream></algorithm>…