Submission #00109


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <bits/stdc++.h>
using namespace std;
#define int long long
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
signed main(){
int xb, xc, yc, xd, yd;
cin >> xb >> xc >> yc >> xd >> yd;
int a = abs(xb*yc);
int b = abs(xb*yd);
cout << (a + b) /2 << endl;
return 0;
}

ステータス

項目 データ
問題 0002 - よんかくけい
ユーザー名 ei1719
投稿日時 2020-04-25 22:38:43
言語 C++14
状態 Accepted
得点 200
ソースコード長 427 Byte
最大実行時間 30 ms
最大メモリ使用量 700 KB

セット

セット 得点 Cases
1 ALL 200 / 200 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt AC 21 ms 604 KB
1
in02.txt AC 21 ms 700 KB
1
in03.txt AC 21 ms 544 KB
1
in04.txt AC 21 ms 644 KB
1
in05.txt AC 21 ms 616 KB
1
in06.txt AC 25 ms 460 KB
1
in07.txt AC 21 ms 564 KB
1
in08.txt AC 21 ms 664 KB
1
in09.txt AC 21 ms 504 KB
1
in10.txt AC 21 ms 600 KB
1
in11.txt AC 24 ms 568 KB
1
in12.txt AC 17 ms 412 KB
1
in13.txt AC 19 ms 512 KB
1
in14.txt AC 20 ms 484 KB
1
in15.txt AC 24 ms 580 KB
1
in16.txt AC 23 ms 428 KB
1
in17.txt AC 21 ms 524 KB
1
in18.txt AC 23 ms 488 KB
1
sample01.txt AC 30 ms 592 KB
1
sample02.txt AC 18 ms 568 KB
1