結果

問題 No.1895 Mod 2
ユーザー ShirotsumeShirotsume
提出日時 2022-04-04 10:20:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,672 KB
最終ジャッジ日時 2024-05-06 00:46:06
合計ジャッジ時間 1,754 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,480 KB
testcase_01 AC 72 ms
74,744 KB
testcase_02 AC 85 ms
76,672 KB
testcase_03 AC 71 ms
74,880 KB
testcase_04 AC 84 ms
76,432 KB
testcase_05 AC 75 ms
76,032 KB
testcase_06 AC 72 ms
76,416 KB
testcase_07 AC 72 ms
76,032 KB
testcase_08 AC 76 ms
76,288 KB
testcase_09 WA -
testcase_10 AC 69 ms
74,444 KB
testcase_11 AC 76 ms
76,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())

def solve():
    l, r = mi()
    l -= 1
    ans1 = int(r ** 0.5 + 10 ** (-14)) + int(r ** 0.5 / 2 ** 0.5 + 10 ** (-14))
    ans2 = int(l ** 0.5 + 10 ** (-14)) + int(l ** 0.5 / 2 ** 0.5 + 10 ** (-14))
    print((ans1 + ans2) % 2)

for _ in range(int(input())):
    solve()
0