{"provider_name":"Hatena Blog","title":"\u3060\u3044\u3076\u8abf\u5b50\u304c\u623b\u3063\u3066\u304d\u305f","description":"AOJ 1007 \u3081\u3093\u3069\u304f\u3055\u3044 #include <cstdio> int main() { for (int ix=1;;ix++) { int n; scanf(\"%d\",&n); if (n==0) break; printf(\"Case %d:\\n\",ix); int f[n][n]; int nx=0,ny=0; if (n%2==0) { for (int i=1; i<=n*n; i++) { f[nx][ny]=i; if (nx==n-1&&ny%2==0) ny++; else if (nx==n-1) { nx--; ny++; } else if (ny==n-1&&n\u2026","author_url":"https://blog.hatena.ne.jp/touyou1121/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftouyoubuntu.hatenablog.com%2Fentry%2F20111111%2F1320979224\" title=\"\u3060\u3044\u3076\u8abf\u5b50\u304c\u623b\u3063\u3066\u304d\u305f - \u5922\u8ffd\u3044\u4eba\" 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://touyoubuntu.hatenablog.com/entry/20111111/1320979224","published":"2011-11-11 11:40:24","provider_url":"https://hatena.blog","author_name":"touyou1121","height":"190","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"width":"100%","type":"rich","blog_url":"https://touyoubuntu.hatenablog.com/","version":"1.0","blog_title":"\u5922\u8ffd\u3044\u4eba","image_url":null}