結果

問題 No.814 ジジ抜き
ユーザー Lepton_sLepton_s
提出日時 2018-01-23 15:04:16
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 1,034 ms / 3,000 ms
コード長 229 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 10,440 KB
最終ジャッジ日時 2023-08-26 23:20:44
合計ジャッジ時間 18,931 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,868 KB
testcase_01 AC 13 ms
7,944 KB
testcase_02 AC 13 ms
7,896 KB
testcase_03 AC 24 ms
7,888 KB
testcase_04 AC 940 ms
10,376 KB
testcase_05 AC 953 ms
10,440 KB
testcase_06 AC 1,033 ms
10,332 KB
testcase_07 AC 521 ms
9,036 KB
testcase_08 AC 1,019 ms
10,396 KB
testcase_09 AC 743 ms
9,656 KB
testcase_10 AC 997 ms
10,212 KB
testcase_11 AC 1,034 ms
10,352 KB
testcase_12 AC 519 ms
9,044 KB
testcase_13 AC 543 ms
9,204 KB
testcase_14 AC 783 ms
9,836 KB
testcase_15 AC 410 ms
8,768 KB
testcase_16 AC 393 ms
8,880 KB
testcase_17 AC 796 ms
9,804 KB
testcase_18 AC 701 ms
9,712 KB
testcase_19 AC 1,006 ms
10,420 KB
testcase_20 AC 527 ms
9,056 KB
testcase_21 AC 582 ms
9,404 KB
testcase_22 AC 849 ms
10,000 KB
testcase_23 AC 437 ms
9,120 KB
testcase_24 AC 775 ms
9,584 KB
testcase_25 AC 664 ms
9,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x = 0
for _ in [0]*int(input()):
    K, L, D = map(int, input().split())
    L2 = L>>D
    while(K>0 and L2%4!=0):
    	x ^= L
    	L += 1<<D
    	L2 += 1
    	K -= 1
    while(K%4!=0):
    	x ^= L+((K-1)<<D)
    	K -= 1
print(x)
0