結果

問題 No.48 ロボットの操縦
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-10-31 01:34:50
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 13,884 KB
最終ジャッジ日時 2023-09-21 23:43:03
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,648 KB
testcase_01 AC 18 ms
11,872 KB
testcase_02 WA -
testcase_03 AC 19 ms
13,884 KB
testcase_04 AC 18 ms
11,764 KB
testcase_05 AC 18 ms
11,760 KB
testcase_06 AC 19 ms
11,652 KB
testcase_07 AC 19 ms
11,844 KB
testcase_08 AC 19 ms
11,856 KB
testcase_09 AC 18 ms
11,920 KB
testcase_10 AC 18 ms
11,768 KB
testcase_11 AC 19 ms
11,652 KB
testcase_12 AC 18 ms
11,856 KB
testcase_13 AC 18 ms
11,764 KB
testcase_14 AC 18 ms
11,740 KB
testcase_15 AC 19 ms
11,724 KB
testcase_16 AC 19 ms
11,764 KB
testcase_17 AC 18 ms
11,664 KB
testcase_18 AC 18 ms
11,876 KB
testcase_19 AC 19 ms
11,920 KB
testcase_20 AC 18 ms
11,672 KB
testcase_21 AC 19 ms
11,872 KB
testcase_22 AC 18 ms
11,660 KB
testcase_23 AC 19 ms
11,644 KB
testcase_24 AC 18 ms
11,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh

(define (order-times x y l)
  (+
   (if (zero? x) 0 1)
   (if (< y 0) 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