結果

問題 No.48 ロボットの操縦
ユーザー MiyamonY
提出日時 2019-09-06 14:44:48
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 18,048 KB
最終ジャッジ日時 2024-06-23 22:02:55
合計ジャッジ時間 2,450 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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 ((and (= x 0) (= y 0)) 0)
		     ((>= y 0) 1)
 		     (else 2)))))
0