結果

問題 No.2442 線形写像
ユーザー tassei903tassei903
提出日時 2023-08-25 21:29:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 556 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 87,768 KB
最終ジャッジ日時 2023-08-25 21:29:41
合計ジャッジ時間 3,273 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,016 KB
testcase_01 AC 74 ms
71,048 KB
testcase_02 AC 71 ms
71,180 KB
testcase_03 AC 70 ms
70,964 KB
testcase_04 WA -
testcase_05 AC 70 ms
71,176 KB
testcase_06 WA -
testcase_07 AC 71 ms
71,200 KB
testcase_08 AC 71 ms
70,904 KB
testcase_09 WA -
testcase_10 AC 72 ms
70,904 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 72 ms
70,904 KB
testcase_14 AC 88 ms
77,148 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 123 ms
77,988 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
n = ni()
a = [ni() for i in range(1<<n)]

ok = 1
for i in range(1<<n):
    x = 0
    for j in range(n):
        if i >> j & 1:
            x += a[1<<j]
    if x != a[i]:
        No()
        exit()
Yes()
0