結果
| 問題 |
No.814 ジジ抜き
|
| コンテスト | |
| ユーザー |
Lepton_s
|
| 提出日時 | 2018-01-23 15:04:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,380 ms / 3,000 ms |
| コード長 | 229 bytes |
| コンパイル時間 | 801 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 12,800 KB |
| 最終ジャッジ日時 | 2024-12-26 03:01:43 |
| 合計ジャッジ時間 | 23,974 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
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)
Lepton_s