結果
問題 |
No.80 四角形を描こう
|
ユーザー |
|
提出日時 | 2025-01-26 00:00:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 790 ms |
コンパイル使用メモリ | 60,572 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-26 00:00:40 |
合計ジャッジ時間 | 1,212 ms |
ジャッジサーバーID (参考情報) |
judge7 / judge13 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include<iostream> #include<cassert> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int D;cin>>D; int ans=0; for(int x=1;x+x+2<=D;x++) { int y=(D-x-x)/2; ans=max(ans,x*y); } cout<<ans<<endl; }