結果

問題 No.1274 楽しい格子点
ユーザー Eki1009
提出日時 2020-10-30 22:34:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 94,848 KB
最終ジャッジ日時 2024-07-22 01:55:41
合計ジャッジ時間 4,623 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 4 TLE * 1 -- * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a, b = map(int, input().split())
g = math.gcd(abs(a), abs(b))
ans = 0
for x in range(10**2):
    for y in range(10**2):
        ans += 1/(2+g*(x+y))**(2+g*(x+y))
print(ans)
0