結果

問題 No.1009 面積の求め方
ユーザー stngstng
提出日時 2022-08-17 20:54:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,648 KB
実行使用メモリ 75,864 KB
最終ジャッジ日時 2024-04-15 09:00:36
合計ジャッジ時間 2,458 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
75,392 KB
testcase_01 AC 42 ms
52,096 KB
testcase_02 AC 69 ms
75,864 KB
testcase_03 AC 78 ms
75,648 KB
testcase_04 AC 44 ms
52,480 KB
testcase_05 AC 43 ms
51,968 KB
testcase_06 AC 65 ms
75,520 KB
testcase_07 AC 64 ms
75,520 KB
testcase_08 AC 66 ms
75,520 KB
testcase_09 AC 56 ms
65,408 KB
testcase_10 AC 57 ms
68,352 KB
testcase_11 AC 63 ms
71,936 KB
testcase_12 AC 73 ms
75,520 KB
testcase_13 AC 73 ms
75,648 KB
testcase_14 AC 73 ms
75,392 KB
testcase_15 AC 76 ms
75,312 KB
testcase_16 AC 76 ms
75,648 KB
testcase_17 AC 69 ms
75,552 KB
testcase_18 AC 74 ms
75,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
ans = 0
for i in range(-b,-a):
    di = i
    for j in range(10**5):
        ans += abs(di**2+(a+b)*di+a*b)*10**(-5)
        di += 10**(-5)
print(ans)
0