結果
| 問題 |
No.378 名声値を稼ごう
|
| コンテスト | |
| ユーザー |
nninjinn00
|
| 提出日時 | 2017-02-11 16:37:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 595 ms |
| コンパイル使用メモリ | 53,884 KB |
| 実行使用メモリ | 13,696 KB |
| 最終ジャッジ日時 | 2024-12-29 16:28:36 |
| 合計ジャッジ時間 | 22,274 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 5 |
ソースコード
#include <iostream>
using namespace std;
int main() {
long long int n, n1, n2;
cin >> n;
n1 = n * 2;
n2 = n;
while(n!=0)
n2 += n / 2;
n /= 2;
cout << n1-n2 << endl;
}
nninjinn00