結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2015-07-13 02:06:20 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 317 ms |
コンパイル使用メモリ | 23,680 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-08 06:14:42 |
合計ジャッジ時間 | 955 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&N); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <math.h> int main(){ int N; scanf("%d",&N); int i; int cookie = 1; double cnt = log((double)N)/log(2.0); printf("%d\n",(int)ceil((double)cnt)); return 0; }