結果

問題 No.388 階段 (1)
ユーザー Miyu OsanaiMiyu Osanai
提出日時 2018-07-29 21:37:04
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 12,820 KB
最終ジャッジ日時 2023-09-25 18:52:30
合計ジャッジ時間 1,856 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
12,596 KB
testcase_01 AC 27 ms
12,624 KB
testcase_02 AC 25 ms
12,612 KB
testcase_03 AC 24 ms
12,604 KB
testcase_04 AC 25 ms
12,820 KB
testcase_05 AC 25 ms
12,752 KB
testcase_06 AC 25 ms
12,624 KB
testcase_07 AC 25 ms
12,616 KB
testcase_08 AC 25 ms
12,796 KB
testcase_09 AC 26 ms
12,608 KB
testcase_10 AC 26 ms
12,704 KB
testcase_11 AC 25 ms
12,808 KB
testcase_12 AC 26 ms
12,696 KB
testcase_13 AC 27 ms
12,636 KB
testcase_14 AC 25 ms
12,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (which-floor p)
    (if (= 0 (mod (car p) (cadr p)))
        (+ 1 (/ (car p) (cadr p)))
        (ceiling (/ (car p) (cadr p)))))
    


(print (which-floor (map string->number (string-split (read-line) " "))))
0