結果

問題 No.1274 楽しい格子点
ユーザー cureskolcureskol
提出日時 2022-11-16 11:23:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 15,528 KB
最終ジャッジ日時 2023-10-17 10:04:34
合計ジャッジ時間 6,397 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 27 ms
10,168 KB
testcase_02 WA -
testcase_03 AC 26 ms
10,172 KB
testcase_04 WA -
testcase_05 AC 27 ms
10,164 KB
testcase_06 WA -
testcase_07 AC 26 ms
10,168 KB
testcase_08 AC 367 ms
10,416 KB
testcase_09 AC 26 ms
10,164 KB
testcase_10 AC 27 ms
10,164 KB
testcase_11 WA -
testcase_12 AC 26 ms
10,164 KB
testcase_13 AC 25 ms
10,164 KB
testcase_14 WA -
testcase_15 AC 25 ms
10,168 KB
testcase_16 AC 25 ms
10,164 KB
testcase_17 AC 25 ms
10,164 KB
testcase_18 AC 25 ms
10,164 KB
testcase_19 AC 25 ms
10,164 KB
testcase_20 AC 26 ms
10,164 KB
testcase_21 AC 26 ms
10,168 KB
testcase_22 TLE -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
権限があれば一括ダウンロードができます

ソースコード

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