結果

問題 No.48 ロボットの操縦
ユーザー RinRin
提出日時 2015-09-04 22:23:47
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 13,916 KB
最終ジャッジ日時 2023-09-26 04:29:29
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,720 KB
testcase_01 AC 18 ms
11,840 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 17 ms
11,648 KB
testcase_05 AC 18 ms
11,652 KB
testcase_06 AC 19 ms
11,824 KB
testcase_07 AC 18 ms
11,860 KB
testcase_08 WA -
testcase_09 AC 18 ms
11,852 KB
testcase_10 WA -
testcase_11 AC 18 ms
11,840 KB
testcase_12 AC 17 ms
11,652 KB
testcase_13 AC 17 ms
11,636 KB
testcase_14 AC 18 ms
11,640 KB
testcase_15 AC 17 ms
11,636 KB
testcase_16 AC 17 ms
11,856 KB
testcase_17 AC 18 ms
11,716 KB
testcase_18 WA -
testcase_19 AC 18 ms
11,756 KB
testcase_20 AC 17 ms
11,864 KB
testcase_21 AC 17 ms
11,764 KB
testcase_22 WA -
testcase_23 AC 17 ms
11,660 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (X (abs (read)))
      (Y (abs (read)))
      (L (read))
     )
  (if (= X 0)
      (System.out.println (ceiling (/ Y L)))
      (System.out.println (+ (ceiling (/ Y L)) (ceiling (/ X L)) 1))
  )
)
0