結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2018-06-27 22:28:50 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 116 ms |
コンパイル使用メモリ | 29,568 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 23:15:48 |
合計ジャッジ時間 | 898 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <stdio.h> #include <math.h> int main(void) { int n, i = 0; scanf("%d", &n); while (1) { if ((int)pow(2, i) >= n) { printf("%d", i); return 0; } i++; } }