結果

問題 No.88 次はどっちだ
ユーザー neko_the_shadow
提出日時 2017-01-22 12:20:49
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2024-12-23 05:27:48
合計ジャッジ時間 1,199 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

(use srfi-13)

(define (solve)
    (let* ((player1 (read-line))
           (cnt
               (let loop ((line (read-line)) (x 0))
                   (if (eof-object? line)
                       x
                       (loop (read-line) (+ x (string-count line #[wb]))))))
           (player2 (if (equal? player1 "oda") "yukiko" "oda")))
        (if (even? cnt) player1 player2)))

(begin
    (display (solve))
    (newline))
0