結果

問題 No.387 ハンコ
ユーザー convexineqconvexineq
提出日時 2021-02-05 06:25:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,673 ms / 5,000 ms
コード長 258 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 102,056 KB
最終ジャッジ日時 2023-09-14 11:46:03
合計ジャッジ時間 22,350 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,673 ms
100,760 KB
testcase_01 AC 2,629 ms
100,712 KB
testcase_02 AC 2,006 ms
101,868 KB
testcase_03 AC 1,985 ms
102,056 KB
testcase_04 AC 541 ms
87,212 KB
testcase_05 AC 1,229 ms
94,340 KB
testcase_06 AC 1,940 ms
99,008 KB
testcase_07 AC 2,550 ms
99,780 KB
testcase_08 AC 2,574 ms
100,184 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("ODD"if i=="1"else"EVEN")
0