結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
yamaken1343
|
| 提出日時 | 2015-10-30 22:31:05 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 142 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 28,228 KB |
| 最終ジャッジ日時 | 2026-02-23 19:34:49 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 20 |
コンパイルメッセージ
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("%f",&n);
| ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<math.h>
int main(void){
float n,p;
scanf("%f",&n);
p = log2(n);
p = ceil(p);
printf("%.0f",p);
return 0;
}
yamaken1343