結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-04 15:52:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 340 bytes |
| コンパイル時間 | 1,988 ms |
| コンパイル使用メモリ | 54,520 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-07 00:01:14 |
| 合計ジャッジ時間 | 3,040 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int d;
cin>>d;
if(d<4){
cout<<0<<endl;
return 0;
} else {
d/=2;
int a,b,c;
a=d/2;
b=d-a;
c=a*b;
int e,f,g;
e=d/2+1;
f=d-e;
g=e*f;
int x;
if(c>=g){
x=c;
} else {
x=g;
}
cout<<x<<endl;
return 0;
}
}