結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-07-19 13:38:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 53,248 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 17:19:18 |
| 合計ジャッジ時間 | 1,037 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include<stdio.h>
int main() {
// your code goes here
int d,ans=0;
std::cin>>d;
for(int x=1;x*2+2<=d;x++){
int y=(d-2*x)/2;
if(y<x)break;
if(x*y>ans)ans=x*y;
}
printf("%d\n",ans);
return 0;
}
horiesiniti