結果

問題 No.88 次はどっちだ
ユーザー ldsybldsyb
提出日時 2016-05-20 14:04:45
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 997 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-04-16 01:48:55
合計ジャッジ時間 1,008 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
16,000 KB
testcase_01 AC 23 ms
15,872 KB
testcase_02 AC 23 ms
15,872 KB
testcase_03 AC 24 ms
16,000 KB
testcase_04 AC 24 ms
15,872 KB
testcase_05 AC 24 ms
15,872 KB
testcase_06 AC 25 ms
15,872 KB
testcase_07 AC 25 ms
15,872 KB
testcase_08 AC 25 ms
15,872 KB
testcase_09 AC 25 ms
15,872 KB
testcase_10 AC 24 ms
15,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define s (read-line))
(define count 0)
(define b "")
(let loop((i 8))
	(set! b (read-line))
	(if (or (char=? (string-ref b 0) #\b) (char=? (string-ref b 0) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 1) #\b) (char=? (string-ref b 1) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 2) #\b) (char=? (string-ref b 2) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 3) #\b) (char=? (string-ref b 3) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 4) #\b) (char=? (string-ref b 4) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 5) #\b) (char=? (string-ref b 5) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 6) #\b) (char=? (string-ref b 6) #\w))
		(set! count (+ count 1)))
	(if (or (char=? (string-ref b 7) #\b) (char=? (string-ref b 7) #\w))
		(set! count (+ count 1)))
	(if (> i 1) (loop (- i 1))))
(if (= (modulo count 2) 0)
	(display s)
	(display (if (string=? s "oda") "yukiko" "oda")))
0