結果

問題 No.1363 [Zelkova Last Tune] 誰がその最後のベルを鳴らすのか?
ユーザー 👑 KazunKazun
提出日時 2020-12-04 02:36:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 994 ms
コンパイル使用メモリ 86,828 KB
実行使用メモリ 77,588 KB
最終ジャッジ日時 2023-08-28 11:55:17
合計ジャッジ時間 2,758 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,156 KB
testcase_01 AC 158 ms
77,284 KB
testcase_02 AC 206 ms
77,588 KB
testcase_03 AC 72 ms
71,292 KB
testcase_04 AC 73 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
T=int(input())

for _ in range(T):
    K,X,Y=map(int,input().split())
    A=list(map(int,input().split()))
    P=list(map(int,input().split()))

    G=0
    for a,p in zip(A,P):
        G^=a%(p+1)

    print("Z" if Y<X+G else "C")
0