結果

問題 No.1009 面積の求め方
ユーザー atcoderbeginneratcoderbeginner
提出日時 2020-03-30 23:44:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 547 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 29,652 KB
最終ジャッジ日時 2023-09-05 11:31:15
合計ジャッジ時間 6,296 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
29,636 KB
testcase_01 AC 137 ms
29,528 KB
testcase_02 AC 138 ms
29,480 KB
testcase_03 AC 138 ms
29,492 KB
testcase_04 AC 135 ms
29,480 KB
testcase_05 AC 135 ms
29,508 KB
testcase_06 AC 136 ms
29,580 KB
testcase_07 AC 137 ms
29,560 KB
testcase_08 AC 136 ms
29,532 KB
testcase_09 AC 135 ms
29,548 KB
testcase_10 AC 137 ms
29,384 KB
testcase_11 AC 135 ms
29,472 KB
testcase_12 AC 136 ms
29,512 KB
testcase_13 AC 139 ms
29,544 KB
testcase_14 AC 141 ms
29,652 KB
testcase_15 AC 137 ms
29,504 KB
testcase_16 AC 137 ms
29,500 KB
testcase_17 AC 135 ms
29,552 KB
testcase_18 AC 138 ms
29,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import module
import sys
import math
import numpy as np

a , b = map(int,input().split())

s = ((b-a)**3) / 6

if s == 0:
    print(0)
else:
    print(s)
0