結果
| 問題 |
No.2442 線形写像
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-08-25 21:49:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 371 ms / 2,000 ms |
| コード長 | 172 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,408 KB |
| 最終ジャッジ日時 | 2024-12-25 08:01:00 |
| 合計ジャッジ時間 | 3,600 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
n = int(input())
a = [int(input()) for _ in range(1<<n)]
f = a[0]==0
for i in range(n):
for j in range(1<<i): f &= a[(1<<i)+j]==a[1<<i]^a[j]
print("Yes" if f else "No")
ニックネーム