結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2016-05-20 14:04:45 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 997 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-10-06 11:20:10 |
合計ジャッジ時間 | 1,232 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
(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")))