結果
問題 |
No.1895 Mod 2
|
ユーザー |
![]() |
提出日時 | 2022-04-14 21:08:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-24 11:20:43 |
合計ジャッジ時間 | 2,655 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 1 WA * 10 |
ソースコード
import math def f(x): sq = math.isqrt(x) if 2*sq*sq <= x: return 0 else: return 1 def solve(): l, r = map(int,input().split()) print(f(l-1)^f(r)) t = int(input()) while t > 0: solve() t -= 1