結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-05-20 14:04:45 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
不安定
|
| 実行時間 | 18 ms / 5,000 ms |
| + 413µs | |
| コード長 | 997 bytes |
| 記録 | |
| コンパイル時間 | 4 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-09-11 02:01:42 |
| 合計ジャッジ時間 | 1,655 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")))
ldsyb