結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-08-05 11:04:16 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 107 bytes |
| コンパイル時間 | 98 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 01:22:34 |
| 合計ジャッジ時間 | 783 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&a);a--;
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int a,b=1;
scanf("%d",&a);a--;
while(a/=2)b++;
printf("%d\n",b);
return 0;
}
testestest