結果

問題 No.111 あばばばば
ユーザー kyuna
提出日時 2019-07-24 23:21:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 67,808 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 13:59:15
合計ジャッジ時間 1,089 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

int main() {
    int L; cin >> L;
    int a = L / 2 + 1, b = L / 2;
    cout << 1LL * (a * ~-a / 2) + (b * ~-b / 2) << endl;
    return 0;
}
0