結果

問題 No.1274 楽しい格子点
ユーザー cureskol
提出日時 2022-11-16 11:23:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 18,716 KB
最終ジャッジ日時 2024-09-17 08:31:18
合計ジャッジ時間 5,237 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15 WA * 6 TLE * 1 -- * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

A,B=map(int,input().split())

if A<0:A=-A
if B<0:B=-B
G=math.gcd(A,B)

ans=0
for n in range(100):
  x=n+1
  y=2+n*G
  y=pow(y,y)
  ans+=x/y

print(ans)
0