{"width":"100%","provider_name":"Hatena Blog","type":"rich","author_name":"inamori","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2025%2F12%2F27%2F195210\" title=\"AtCoder Beginner Contest 436 B - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://inamori.hateblo.jp/entry/2025/12/27/195210","provider_url":"https://hatena.blog","title":"AtCoder Beginner Contest 436 B","blog_url":"https://inamori.hateblo.jp/","blog_title":"inamori\u2019s diary","version":"1.0","description":"https://atcoder.jp/contests/abc436/tasks/abc436_b\u659c\u3081\u306e\u5217\u3092\u57cb\u3081\u3064\u304f\u3057\u305f\u3089\u6b21\u306e\u659c\u3081\u306e\u5217\u306b\u79fb\u884c\u3059\u308b\u304b\u3089\u5fc5\u305a\u5168\u90e8\u57cb\u307e\u308b\u3068\u3044\u3046\u8a71\u3067\u3059\u306d\u3002 \u884c\u5217\u3092\u4f5c\u3063\u3066\u3001\u9806\u306b\u305d\u306e\u8981\u7d20\u306b\u5024\u3092\u5165\u308c\u3066\u3044\u304f\u3060\u3051\u3067\u3059\u306d\u3002 N <- scan(\"stdin\", integer()) table <- matrix(0, nrow=N, ncol=N) r <- 0 c <- (N-1)/2 table[r+1, c+1] <- 1 for(i in 2:(N*N)) { new_r <- (r - 1) %% N new_c <- (c + 1) %% N if(table[new\u2026","author_url":"https://blog.hatena.ne.jp/inamori/","published":"2025-12-27 19:52:10","height":"190","categories":[],"image_url":null}