結果

問題 No.1009 面積の求め方
ユーザー StarMatyanStarMatyan
提出日時 2020-11-28 17:16:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 8,128 KB
最終ジャッジ日時 2023-10-10 00:45:30
合計ジャッジ時間 1,568 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 14 ms
7,872 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,900 KB
testcase_05 AC 15 ms
7,848 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a,b = map(int,input().split(" "))
zero_dev = int(a*b)
zero_sa = int(b-a)
first_wa = int(a-b)
first_multi_u = int(math.pow(b,2))
first_multi_l = int(math.pow(a,2))
second_multi_u = int(math.pow(b,3))
second_multi_l = int(math.pow(a,3))

zero_seki = zero_dev*zero_sa
first_seki = (first_multi_u-first_multi_l)/2
second_seki = (second_multi_u-second_multi_l)/3

print(second_seki-first_seki+zero_seki)
0