結果
問題 |
No.71 そろばん
|
ユーザー |
![]() |
提出日時 | 2025-05-21 06:55:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 1,871 ms |
コンパイル使用メモリ | 194,728 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-21 06:55:53 |
合計ジャッジ時間 | 3,311 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<bits/stdc++.h> using namespace std; typedef long long 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) - 1); } cout << ans << endl; }