Submission #00010
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include<bits/stdc++.h> #define lol long long #define mp make_pair #define fi first #define se second #define fixed fixed<<setprecision(14) using namespace std; using pii=pair< int , int >; const lol mod=(1e9)+7; const int dx[]={1,0,-1,0,1,1,-1,-1}; const int dy[]={0,1,0,-1,1,-1,1,-1}; lol abs (lol x){ return (x<0?-x:x);} signed main(){ cin.tie(0); ios::sync_with_stdio( false ); lol n,m,k,r; int xb,xc,yc,xd,yd; cin >>xb>>xc>>yc>>xd>>yd; cout <<(xb*yc+xb*yd)/2<< '\n' ; return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - よんかくけい |
ユーザー名 | ei1923 |
投稿日時 | 2020-04-25 21:05:49 |
言語 | C++14 |
状態 | Accepted |
得点 | 200 |
ソースコード長 | 513 Byte |
最大実行時間 | 32 ms |
最大メモリ使用量 | 640 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 200 / 200 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 22 ms | 604 KB |
1
|
in02.txt | AC | 15 ms | 432 KB |
1
|
in03.txt | AC | 20 ms | 392 KB |
1
|
in04.txt | AC | 23 ms | 348 KB |
1
|
in05.txt | AC | 26 ms | 428 KB |
1
|
in06.txt | AC | 22 ms | 512 KB |
1
|
in07.txt | AC | 18 ms | 596 KB |
1
|
in08.txt | AC | 28 ms | 552 KB |
1
|
in09.txt | AC | 22 ms | 512 KB |
1
|
in10.txt | AC | 32 ms | 472 KB |
1
|
in11.txt | AC | 25 ms | 428 KB |
1
|
in12.txt | AC | 17 ms | 640 KB |
1
|
in13.txt | AC | 18 ms | 596 KB |
1
|
in14.txt | AC | 16 ms | 556 KB |
1
|
in15.txt | AC | 25 ms | 640 KB |
1
|
in16.txt | AC | 25 ms | 596 KB |
1
|
in17.txt | AC | 25 ms | 548 KB |
1
|
in18.txt | AC | 26 ms | 500 KB |
1
|
sample01.txt | AC | 18 ms | 588 KB |
1
|
sample02.txt | AC | 25 ms | 540 KB |
1
|