結果
問題 | No.80 四角形を描こう |
ユーザー |
![]() |
提出日時 | 2024-08-10 18:34:02 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 3,305 ms |
コンパイル使用メモリ | 274,272 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-08-10 18:34:06 |
合計ジャッジ時間 | 3,776 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int D,ans=0;cin>>D;for(int i=1;i<=D/2;i++)ans=max(ans,i*((D-i*2)/2));cout<<ans<<endl;}