結果
問題 | No.111 あばばばば |
ユーザー |
![]() |
提出日時 | 2016-08-15 17:21:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 379 ms / 5,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 412 ms |
コンパイル使用メモリ | 54,292 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-07 17:43:37 |
合計ジャッジ時間 | 1,560 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream> using namespace std; int main() { long L; long long ans = 0; cin >> L; for (int i = 1;i <= L / 2;i++) { ans += (2 * i -1); } cout << ans << endl; return 0; }