結果
| 問題 | No.1895 Mod 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-15 15:20:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 2,000 ms |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 86,268 KB |
| 最終ジャッジ日時 | 2026-07-08 21:07:49 |
| 合計ジャッジ時間 | 3,226 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)