結果
| 問題 | 
                            No.1895 Mod 2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2025-04-15 15:20:33 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 151 ms / 2,000 ms | 
| コード長 | 154 bytes | 
| コンパイル時間 | 536 ms | 
| コンパイル使用メモリ | 82,108 KB | 
| 実行使用メモリ | 78,252 KB | 
| 最終ジャッジ日時 | 2025-04-15 15:20:37 | 
| 合計ジャッジ時間 | 3,361 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 11 | 
ソースコード
from math import isqrt def sm(x): return isqrt(x)-isqrt(x//2) N=int(input()) for i in range(N): L,R=map(int,input().split()) print((sm(R)-sm(L-1))%2)