結果

問題 No.48 ロボットの操縦
ユーザー MiyamonYMiyamonY
提出日時 2019-09-06 14:42:17
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 5,396 KB
実行使用メモリ 14,684 KB
最終ジャッジ日時 2023-09-06 03:06:25
合計ジャッジ時間 2,465 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
12,620 KB
testcase_01 AC 27 ms
12,624 KB
testcase_02 WA -
testcase_03 AC 25 ms
12,820 KB
testcase_04 AC 25 ms
12,608 KB
testcase_05 AC 25 ms
12,608 KB
testcase_06 AC 27 ms
12,628 KB
testcase_07 AC 27 ms
14,684 KB
testcase_08 AC 27 ms
12,608 KB
testcase_09 AC 25 ms
12,596 KB
testcase_10 AC 25 ms
12,828 KB
testcase_11 AC 26 ms
12,608 KB
testcase_12 AC 26 ms
12,612 KB
testcase_13 AC 26 ms
12,852 KB
testcase_14 AC 26 ms
12,912 KB
testcase_15 AC 26 ms
12,616 KB
testcase_16 AC 26 ms
12,596 KB
testcase_17 AC 27 ms
12,620 KB
testcase_18 AC 26 ms
12,644 KB
testcase_19 AC 26 ms
12,812 KB
testcase_20 AC 26 ms
12,772 KB
testcase_21 AC 26 ms
12,684 KB
testcase_22 AC 26 ms
12,904 KB
testcase_23 AC 26 ms
12,716 KB
testcase_24 AC 26 ms
12,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (read-number)
  (string->number (read-line)))

(let* ((x (read-number))
       (y (read-number))
       (l (read-number)))

  (print (+ (div (+ (- l 1) (abs x)) l)
	    (div (+ (- l 1) (abs y)) l)
	    (cond ((= x 0) (= y 0) 0)
		  ((>= y 0) 1)
 		  (else 2)))))
0