結果
| 問題 |
No.1895 Mod 2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-08 23:08:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 491 bytes |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,248 KB |
| 最終ジャッジ日時 | 2024-11-28 14:15:50 |
| 合計ジャッジ時間 | 39,795 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 11 |
ソースコード
t = int(input())
def divisor(n):
sq = n**0.5
border = int(sq)
table = []
bigs = []
for small in range(1, border+1):
if n%small == 0:
table.append(small)
big = n//small
bigs.append(big)
if border == sq:#nが平方数
bigs.pop()
table += reversed(bigs)
return table
for i in range(t):
ans = 0
l,r = map(int,input().split())
for j in range(l,r+1):
ans += sum(divisor(j))
print(ans%2)