Submission #875865


Source Code Expand

Copy
#include <iostream>

using namespace std;

int main()
{
	int a = 0, b = 0, h = 0, s = 0;

	cin >> a >> b >> h;

	s = (a + b)*h / 2;

	cout << s << endl;

	return 0;

}



Submission Info

Submission Time
Task A - Trapezoids
User pimanaya
Language C++14 (GCC 5.4.1)
Score 100
Code Size 191 Byte
Status
Exec Time 5 ms
Memory 256 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 100 / 100 01.txt, 02.txt, 03.txt, 04.txt, 05.txt
Case Name Status Exec Time Memory
01.txt 4 ms 256 KB
02.txt 4 ms 256 KB
03.txt 4 ms 256 KB
04.txt 4 ms 256 KB
05.txt 4 ms 256 KB
sample_01.txt 5 ms 256 KB
sample_02.txt 4 ms 256 KB