結果

問題 No.387 ハンコ
ユーザー convexineqconvexineq
提出日時 2021-02-05 06:31:31
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 2,904 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 102,180 KB
最終ジャッジ日時 2023-09-14 11:52:37
合計ジャッジ時間 24,354 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,904 ms
100,508 KB
testcase_01 AC 2,884 ms
101,156 KB
testcase_02 AC 2,126 ms
102,088 KB
testcase_03 AC 2,119 ms
102,180 KB
testcase_04 AC 552 ms
87,368 KB
testcase_05 AC 1,322 ms
94,508 KB
testcase_06 AC 2,080 ms
98,984 KB
testcase_07 AC 2,729 ms
99,716 KB
testcase_08 AC 2,753 ms
100,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
*a,=map(int,input().split())
b=int("".join(input().split())[::-1],2)
r=[[]for _ in range(2**17)]
for i in range(n):r[a[i]]+=[i]
x=1<<2*n
for l in r:
    v=0
    for j in l:v|=b<<j
    x^=v
for i in bin(x)[:3:-1]:print("EOVDEDN"[i=="1"::2])
0