結果

問題 No.1274 楽しい格子点
ユーザー Eki1009Eki1009
提出日時 2020-10-30 22:39:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 144,792 KB
最終ジャッジ日時 2023-09-29 07:31:17
合計ジャッジ時間 6,749 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 71 ms
70,912 KB
testcase_02 WA -
testcase_03 AC 78 ms
70,980 KB
testcase_04 WA -
testcase_05 AC 70 ms
70,800 KB
testcase_06 WA -
testcase_07 AC 70 ms
71,312 KB
testcase_08 AC 241 ms
72,236 KB
testcase_09 AC 72 ms
71,052 KB
testcase_10 AC 71 ms
70,840 KB
testcase_11 WA -
testcase_12 AC 71 ms
71,264 KB
testcase_13 AC 73 ms
71,260 KB
testcase_14 WA -
testcase_15 AC 73 ms
71,220 KB
testcase_16 AC 72 ms
70,864 KB
testcase_17 AC 73 ms
71,176 KB
testcase_18 AC 73 ms
70,864 KB
testcase_19 AC 74 ms
71,200 KB
testcase_20 AC 73 ms
70,876 KB
testcase_21 AC 74 ms
71,308 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())
g = math.gcd(abs(a), abs(b))
ans = 0
for x in range(10**2):
    for y in range(10**2):
        k = 2+g*(x+y)
        if k**k > 10**10:
            break
        ans += 10**6/k**k
print(ans/10**6)
0