結果
| 問題 | No.1895 Mod 2 |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-11-25 00:46:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 96,616 KB |
| 実行使用メモリ | 965,784 KB |
| 最終ジャッジ日時 | 2026-07-16 23:08:52 |
| 合計ジャッジ時間 | 7,772 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 1 |
| other | -- * 11 |
ソースコード
from bisect import bisect,bisect_left
X = []
for i in range(1,int((10**15)**0.5)+1):
X.append(i*i)
X.append(2*i*i)
X.sort()
for _ in range(int(input())):
l,r = map(int,input().split())
a = bisect_left(X,l)
b = bisect(X,r)
print((b-a)%2)
ntuda