結果
| 問題 |
No.111 あばばばば
|
| コンテスト | |
| ユーザー |
prog470
|
| 提出日時 | 2016-09-11 17:52:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 973 ms / 5,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 559 ms |
| コンパイル使用メモリ | 68,684 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 03:34:45 |
| 合計ジャッジ時間 | 2,811 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
int L;
cin >> L;
long long ans = 0;
for (int i = 3; i <= L; i++) {
if(i % 2 != 0) ans += L - i + 1;
}
cout << ans << endl;
return 0;
}
prog470