結果
| 問題 | No.80 四角形を描こう |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-07-19 13:38:36 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 377 ms |
| コンパイル使用メモリ | 71,368 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-05 05:36:36 |
| 合計ジャッジ時間 | 1,208 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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