結果
問題 | No.2212 One XOR Matrix |
ユーザー |
![]() |
提出日時 | 2025-04-16 00:25:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 81,780 KB |
実行使用メモリ | 53,556 KB |
最終ジャッジ日時 | 2025-04-16 00:27:35 |
合計ジャッジ時間 | 1,742 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 8 |
ソースコード
n = int(input()) if n % 2 != 0: print(-1) else: if n == 2: # Sample matrix for N=2 print("7 14 0 8") print("4 12 2 11") print("15 9 6 1") print("13 10 5 3") else: # For even N greater than 2, a similar pattern can be extended, but here we return -1 for brevity. # In practice, a recursive or more general construction would be needed. print(-1)