結果
問題 | No.47 ポケットを叩くとビスケットが2倍 |
ユーザー |
![]() |
提出日時 | 2022-01-29 20:10:25 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 24,320 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-02 15:12:59 |
合計ジャッジ時間 | 1,050 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf( "%d\n", &N ); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { int N; scanf( "%d\n", &N ); int c = 1; int cnt = 0; for( ; c < N ; c = c * 2 ) { cnt++; } printf("%d\n", cnt ); return 0; }