結果
問題 |
No.111 あばばばば
|
ユーザー |
![]() |
提出日時 | 2019-07-24 23:23:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 67,840 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 14:00:36 |
合計ジャッジ時間 | 1,124 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#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 + 1LL * b * ~-b / 2 << endl; return 0; }