結果
問題 | No.1895 Mod 2 |
ユーザー | ytft |
提出日時 | 2022-04-09 04:27:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 202 ms / 2,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 632 ms |
コンパイル使用メモリ | 87,088 KB |
実行使用メモリ | 77,884 KB |
最終ジャッジ日時 | 2023-08-19 08:28:17 |
合計ジャッジ時間 | 4,221 ms |
ジャッジサーバーID (参考情報) |
judge9 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
71,552 KB |
testcase_01 | AC | 159 ms
77,884 KB |
testcase_02 | AC | 185 ms
77,716 KB |
testcase_03 | AC | 193 ms
77,412 KB |
testcase_04 | AC | 202 ms
77,736 KB |
testcase_05 | AC | 197 ms
77,700 KB |
testcase_06 | AC | 196 ms
77,776 KB |
testcase_07 | AC | 195 ms
77,660 KB |
testcase_08 | AC | 159 ms
77,592 KB |
testcase_09 | AC | 171 ms
77,804 KB |
testcase_10 | AC | 130 ms
77,568 KB |
testcase_11 | AC | 178 ms
77,708 KB |
ソースコード
import sys,math input=lambda:sys.stdin.readline().rstrip() def solve(): L,R=map(float,input().split()) ans=0 while R>0.5: right=math.floor((pow(R,0.5)+1)/2) left=math.ceil((pow(L,0.5)+1)/2) ans^=(right-left+1)%2 R/=2 L/=2 print(ans) T=int(input()) for i in range(T): solve()