結果

問題 No.48 ロボットの操縦
ユーザー MiyamonYMiyamonY
提出日時 2019-09-06 14:29:18
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 14,772 KB
最終ジャッジ日時 2023-09-06 02:51:20
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
12,664 KB
testcase_01 AC 25 ms
12,836 KB
testcase_02 WA -
testcase_03 AC 24 ms
12,652 KB
testcase_04 WA -
testcase_05 AC 24 ms
12,688 KB
testcase_06 AC 25 ms
12,600 KB
testcase_07 AC 25 ms
12,604 KB
testcase_08 WA -
testcase_09 AC 25 ms
12,584 KB
testcase_10 AC 25 ms
14,772 KB
testcase_11 AC 25 ms
12,572 KB
testcase_12 WA -
testcase_13 AC 24 ms
12,580 KB
testcase_14 WA -
testcase_15 AC 25 ms
12,584 KB
testcase_16 AC 25 ms
12,756 KB
testcase_17 AC 24 ms
12,620 KB
testcase_18 AC 25 ms
12,688 KB
testcase_19 AC 25 ms
12,604 KB
testcase_20 AC 24 ms
12,608 KB
testcase_21 AC 25 ms
12,628 KB
testcase_22 WA -
testcase_23 AC 24 ms
12,784 KB
testcase_24 AC 25 ms
12,688 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)
	    (if (< x 0)
		1
		0)
	    (if (< y 0)
		1
		0))))
0