結果
問題 |
No.111 あばばばば
|
ユーザー |
![]() |
提出日時 | 2019-07-24 23:21:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 596 ms |
コンパイル使用メモリ | 68,020 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 13:59:09 |
合計ジャッジ時間 | 1,071 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 6 |
ソースコード
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int L; cin >> L; int a = L / 2 + 1, b = L / 2; cout << (a * ~-a / 2) + (b * ~-b / 2) << endl; return 0; }