結果
問題 | No.1169 Row and Column and Diagonal |
ユーザー | NoaSaber |
提出日時 | 2021-04-26 11:04:31 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 87,268 KB |
実行使用メモリ | 79,772 KB |
最終ジャッジ日時 | 2023-09-18 02:50:31 |
合計ジャッジ時間 | 5,143 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,260 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
ソースコード
N=int(input()) ans=[[0]*N for i in range(N)] for i in range(1,N+1): for j in range(1,N+1): if (2*i-j)%N==0: ans[i-1][j-1]=5 else: ans[i-1][j-1]=(2*i-j)%N for i in ans: print(*i)