結果

問題 No.46 はじめのn歩
ユーザー カルロス
提出日時 2015-07-16 10:51:11
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 23,552 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 08:10:28
合計ジャッジ時間 687 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%lf %lf", &a, &b);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main(void){
    double a, b;
    scanf("%lf %lf", &a, &b);
    printf("%.0lf\n", ceil(b/a));
    return 0;
}
0