結果
問題 |
No.71 そろばん
|
ユーザー |
![]() |
提出日時 | 2016-10-21 23:55:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 163 bytes |
コンパイル時間 | 373 ms |
コンパイル使用メモリ | 54,776 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-23 16:51:11 |
合計ジャッジ時間 | 1,091 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 9 WA * 11 |
ソースコード
#include<iostream> using namespace std; int main() { long n, h, ans; cin >> n; h = n / 2 + 1; ans = (h*(h + 1) - 1); cout << ans << endl; return 0; }