結果

問題 No.1363 [Zelkova Last Tune] 誰がその最後のベルを鳴らすのか?
ユーザー convexineqconvexineq
提出日時 2021-01-23 14:38:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,880 KB
実行使用メモリ 78,124 KB
最終ジャッジ日時 2023-08-29 01:32:06
合計ジャッジ時間 2,282 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,324 KB
testcase_01 AC 160 ms
77,772 KB
testcase_02 AC 213 ms
78,124 KB
testcase_03 AC 72 ms
71,404 KB
testcase_04 AC 70 ms
70,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    k,x,y = map(int,input().split())
    *a, = map(int,input().split())
    *p, = map(int,input().split())
    g = 0
    for ai,pi in zip(a,p):
        g ^= ai%(pi+1)
    print("Z" if y-g < x else "C")
0