結果
| 問題 | No.71 そろばん | 
| コンテスト | |
| ユーザー |  fiord | 
| 提出日時 | 2015-06-19 22:29:23 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 213 bytes | 
| コンパイル時間 | 438 ms | 
| コンパイル使用メモリ | 57,788 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-07 04:05:21 | 
| 合計ジャッジ時間 | 1,166 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
int main(){
	ll n;	cin>>n;
	ll ans=0;
	for(ll i=0;i<n;i++){
		ans=max(ans,(i+1)*(n-i+1));
	}
	cout<<ans-1<<endl;
	return 0;
}
            
            
            
        