結果

問題 No.48 ロボットの操縦
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-10-31 01:46:08
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 293 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 13,644 KB
最終ジャッジ日時 2023-09-22 00:07:47
合計ジャッジ時間 2,086 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
11,884 KB
testcase_01 AC 19 ms
11,660 KB
testcase_02 AC 20 ms
11,752 KB
testcase_03 AC 19 ms
11,640 KB
testcase_04 AC 20 ms
11,752 KB
testcase_05 AC 19 ms
11,868 KB
testcase_06 AC 19 ms
11,672 KB
testcase_07 AC 20 ms
11,848 KB
testcase_08 AC 19 ms
11,892 KB
testcase_09 AC 20 ms
11,668 KB
testcase_10 AC 20 ms
11,624 KB
testcase_11 AC 20 ms
13,644 KB
testcase_12 AC 19 ms
11,660 KB
testcase_13 AC 19 ms
11,880 KB
testcase_14 AC 19 ms
11,748 KB
testcase_15 AC 20 ms
11,748 KB
testcase_16 AC 20 ms
11,608 KB
testcase_17 AC 20 ms
11,764 KB
testcase_18 AC 19 ms
11,648 KB
testcase_19 AC 19 ms
11,724 KB
testcase_20 AC 19 ms
11,600 KB
testcase_21 AC 19 ms
11,880 KB
testcase_22 AC 19 ms
11,868 KB
testcase_23 AC 19 ms
11,644 KB
testcase_24 AC 20 ms
11,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh

(define (order-times x y l)
  (+
   (if (zero? x) 0 1)
   (if (< y 0) (if (zero? x) 2 1) 0)
   (ceiling (/ (abs x) l))
   (ceiling (/ (abs y) l))
   )

  )

(define (main _)
  (let* ([x (read)][y (read)][l (read)])
    (display (order-times x y l))
    )
  (newline)
  0)
0