結果
| 問題 | No.1169 Row and Column and Diagonal |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-16 12:31:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 71 ms / 2,000 ms |
| コード長 | 332 bytes |
| 記録 | |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2026-04-13 08:18:52 |
| 合計ジャッジ時間 | 2,523 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
N = int(input())
X = [[0]*N for _ in range(N)]
for i in range(N):
idx = (2*i)%N
for j in range(N):
jdx = (idx-j)%N
X[jdx][i] = j+1
for x in X:
print(*x)