結果
| 問題 | No.642 Two Operations No.1 |
| コンテスト | |
| ユーザー |
mine691
|
| 提出日時 | 2018-09-01 22:22:51 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 165 bytes |
| 記録 | |
| コンパイル時間 | 529 ms |
| コンパイル使用メモリ | 62,592 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 18:02:38 |
| 合計ジャッジ時間 | 1,423 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 9 |
ソースコード
#include<iostream>
using namespace std;
int main() {
int n, x=1;
cin >> n;
int ans = 0;
while (x < n) {
x *= 2;
ans++;
}
cout << ans + (x - n) << endl;
}
mine691