結果

問題 No.46 はじめのn歩
ユーザー parkplace1919parkplace1919
提出日時 2017-11-06 00:08:33
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 176 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-05-03 05:37:34
合計ジャッジ時間 1,455 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
15,872 KB
testcase_01 AC 21 ms
16,000 KB
testcase_02 AC 20 ms
16,000 KB
testcase_03 AC 20 ms
16,000 KB
testcase_04 AC 20 ms
15,872 KB
testcase_05 AC 21 ms
15,872 KB
testcase_06 AC 21 ms
15,872 KB
testcase_07 AC 21 ms
15,872 KB
testcase_08 AC 21 ms
16,128 KB
testcase_09 AC 20 ms
15,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/bin/gosh

(define a (read))
(define b (read))

(print
 ((lambda (a b)
         (if (zero? (modulo b a))
             (quotient b a)
             (+ (quotient b a) 1))) a b))
0