結果

問題 No.9013 台形の面積
ユーザー tcltktcltk
提出日時 2021-01-16 05:47:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 254 ms / 2,000 ms
コード長 529 bytes
コンパイル時間 1,455 ms
コンパイル使用メモリ 86,660 KB
実行使用メモリ 91,984 KB
最終ジャッジ日時 2023-09-13 17:51:38
合計ジャッジ時間 3,596 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 254 ms
91,888 KB
testcase_01 AC 253 ms
91,884 KB
testcase_02 AC 253 ms
91,812 KB
testcase_03 AC 252 ms
91,936 KB
testcase_04 AC 246 ms
91,936 KB
testcase_05 AC 250 ms
91,984 KB
testcase_06 AC 251 ms
91,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#region Header
#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
from queue import PriorityQueue
import bisect
import heapq

def input():
    return sys.stdin.readline()[:-1]

sys.setrecursionlimit(1000000)
#endregion

# _INPUT = """# paste here...
# """
# sys.stdin = io.StringIO(_INPUT)



def main():
    u, b, h = map(int, input().split(','))
    print(f'{(u+b)*h/2:.2f}')

if __name__ == '__main__':
    main()
0