結果

問題 No.8 N言っちゃダメゲーム
ユーザー MiyamonY
提出日時 2019-09-04 12:13:33
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 17,152 KB
最終ジャッジ日時 2024-12-26 06:40:57
合計ジャッジ時間 1,602 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

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