結果
問題 |
No.80 四角形を描こう
|
ユーザー |
![]() |
提出日時 | 2016-08-25 12:14:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 281 bytes |
コンパイル時間 | 453 ms |
コンパイル使用メモリ | 55,816 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 02:17:30 |
合計ジャッジ時間 | 1,008 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <iostream> using namespace std; int main() { int d; cin >> d; int ans = 0; if (d >= 4) { for (int h = 1; h < d / 2; h++) { int w = d / 2 - h; ans = max(ans, h * w); } } cout << ans << endl; return 0; }