結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| コンテスト | |
| ユーザー |
yamaken1343
|
| 提出日時 | 2015-10-30 22:31:05 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 142 bytes |
| コンパイル時間 | 554 ms |
| コンパイル使用メモリ | 24,064 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 05:45:38 |
| 合計ジャッジ時間 | 1,354 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
コンパイルメッセージ
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