結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
|
提出日時 | 2023-11-16 12:31:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 100 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 79,360 KB |
最終ジャッジ日時 | 2024-09-26 05:06:18 |
合計ジャッジ時間 | 2,787 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)