結果
| 問題 |
No.1200 お菓子配り-3
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-28 23:16:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 81,592 KB |
| 実行使用メモリ | 76,176 KB |
| 最終ジャッジ日時 | 2024-11-14 17:07:04 |
| 合計ジャッジ時間 | 36,654 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 30 TLE * 1 |
ソースコード
def divisors(M):#Mの約数列 O(n^(0.5+e))
d=[]
i=1
while M>=i**2:
if M%i==0:
d.append(i)
if i**2!=M:
d.append(M//i)
i=i+1
return d
import sys
input= sys.stdin.readline
for _ in range(int(input())):
x,y = map(int,input().split())
div = divisors(x+y)
count = 0
for d in div:
count+=1
print(count)