結果
| 問題 |
No.642 Two Operations No.1
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-04-14 07:40:21 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 1,320 ms |
| コンパイル使用メモリ | 27,136 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-16 05:29:16 |
| 合計ジャッジ時間 | 1,219 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 9 |
ソースコード
// yukicoder: No.642 Two Operations No.1
// 2019.4.14 bal4u
#include <stdio.h>
int main()
{
int x, N, ans;
scanf("%d", &N);
ans = 0, x = 1;
while (x < N) x <<= 1, ans++;
ans += x - N;
printf("%d\n", ans);
return 0;
}
bal4u