結果
問題 | No.2212 One XOR Matrix |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:19:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 506 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 82,040 KB |
実行使用メモリ | 54,304 KB |
最終ジャッジ日時 | 2025-03-20 21:20:33 |
合計ジャッジ時間 | 1,970 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 8 |
ソースコード
n = int(input())size = 1 << n# Check if N is oddif n % 2 == 1:print(-1)else:# Generate the matrix based on even N (example for N=2)# Precomputed example for N=2if n == 2:matrix = [[7, 14, 0, 8],[4, 12, 2, 11],[15, 9, 6, 1],[13, 10, 5, 3]]for row in matrix:print(' '.join(map(str, row)))else:# General case for even N (not implemented here due to complexity)print(-1)