結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 24 ms
12,896 KB
testcase_02 AC 24 ms
12,700 KB
testcase_03 AC 25 ms
12,812 KB
testcase_04 AC 24 ms
12,840 KB
testcase_05 WA -
testcase_06 AC 24 ms
12,620 KB
testcase_07 AC 24 ms
12,708 KB
testcase_08 AC 24 ms
12,628 KB
testcase_09 AC 25 ms
12,700 KB
testcase_10 AC 24 ms
12,640 KB
testcase_11 AC 24 ms
12,820 KB
testcase_12 AC 24 ms
12,800 KB
testcase_13 AC 24 ms
12,780 KB
testcase_14 AC 25 ms
12,688 KB
testcase_15 AC 25 ms
12,604 KB
testcase_16 AC 25 ms
12,768 KB
testcase_17 AC 25 ms
12,636 KB
testcase_18 AC 24 ms
12,628 KB
testcase_19 AC 24 ms
12,792 KB
testcase_20 AC 24 ms
12,620 KB
testcase_21 AC 24 ms
12,684 KB
testcase_22 AC 24 ms
12,620 KB
testcase_23 AC 24 ms
12,608 KB
testcase_24 AC 24 ms
12,684 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 (< y 0)
		2
		1))))
0