結果

問題 No.46 はじめのn歩
ユーザー φλμφλμ
提出日時 2018-05-29 19:44:40
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 394 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 11,908 KB
最終ジャッジ日時 2023-09-12 20:26:49
合計ジャッジ時間 1,117 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,628 KB
testcase_01 AC 17 ms
11,736 KB
testcase_02 AC 17 ms
11,584 KB
testcase_03 AC 17 ms
11,852 KB
testcase_04 AC 17 ms
11,908 KB
testcase_05 AC 16 ms
11,640 KB
testcase_06 AC 16 ms
11,660 KB
testcase_07 AC 16 ms
11,680 KB
testcase_08 AC 16 ms
11,828 KB
testcase_09 AC 17 ms
11,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

;;; no.46 はじめのn歩
;;;
;;; 簡単な割り算の問題。
;;; 最小の歩数だから、小数点以下は切り上げる必要がありますね。

;;; 入力を受け取ったあと、割り算をして、切り上げて出力する。これだけ。

(define first_n_step
  (lambda ()
    (let ((a (read)) (b (read))
          )

      (print (ceiling (/ b a))))))

(first_n_step)
0