結果

問題 No.8 N言っちゃダメゲーム
ユーザー MiyamonYMiyamonY
提出日時 2019-09-04 12:13:33
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 14,908 KB
最終ジャッジ日時 2023-08-27 02:06:27
合計ジャッジ時間 1,958 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
12,796 KB
testcase_01 AC 24 ms
12,684 KB
testcase_02 AC 23 ms
12,712 KB
testcase_03 AC 23 ms
12,808 KB
testcase_04 AC 24 ms
12,680 KB
testcase_05 AC 24 ms
12,912 KB
testcase_06 AC 24 ms
14,908 KB
testcase_07 AC 24 ms
14,712 KB
testcase_08 AC 23 ms
12,808 KB
testcase_09 AC 25 ms
12,948 KB
testcase_10 AC 24 ms
12,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let* ((_ (read-line)))

  (let loop ((line (read-line)))
    (cond ((eof-object? line))
	  (else
	   (let* ((in (open-input-string line))
		  (n (read in))
		  (k (read in)))
	     (if (= (mod (- n 1) (+ k 1)) 0)
		 (print "Lose")
		 (print "Win"))
	     (loop (read-line)))))))
0