結果
| 問題 |
No.1169 Row and Column and Diagonal
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-14 23:35:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 318 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 76,524 KB |
| 最終ジャッジ日時 | 2024-10-10 16:52:07 |
| 合計ジャッジ時間 | 2,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
def main():
N = int(input())
from collections import deque
ans = []
for i in range(1, N//2 + 1):
ans.append(i)
ans.append(0--N//2 + i)
ans.append(0--N//2)
ans = deque(ans)
for i in range(N):
print(*ans)
ans.rotate(-1)
if __name__ == '__main__':
main()