結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
dddai1206_c
|
| 提出日時 | 2014-11-27 23:33:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 568 ms |
| コンパイル使用メモリ | 61,172 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-08 03:51:36 |
| 合計ジャッジ時間 | 1,279 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main(){
int d;
cin >> d;
long long ans = 0;
for(long long i = 1;i < d - i*2;i++){
ans = max(ans,i*(int)((d-i*2)/2));
}
cout << ans << endl;
return 0;
}
dddai1206_c