結果

問題 No.46 はじめのn歩
ユーザー go_boardwalkgo_boardwalk
提出日時 2017-03-30 23:05:06
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 122 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 11,848 KB
最終ジャッジ日時 2023-09-21 08:57:08
合計ジャッジ時間 811 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,772 KB
testcase_01 AC 17 ms
11,836 KB
testcase_02 AC 17 ms
11,848 KB
testcase_03 AC 16 ms
11,776 KB
testcase_04 AC 17 ms
11,668 KB
testcase_05 AC 16 ms
11,660 KB
testcase_06 AC 17 ms
11,668 KB
testcase_07 AC 16 ms
11,772 KB
testcase_08 AC 16 ms
11,632 KB
testcase_09 AC 16 ms
11,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let ((x (read)) (y (read)))
  (print (if (zero? (modulo y x))
             (/ y x)
             (floor (+ (/ y x) 1)))))
0