結果

問題 No.88 次はどっちだ
コンテスト
ユーザー neko_the_shadow
提出日時 2017-01-22 12:20:49
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 428 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 146 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 16,896 KB
最終ジャッジ日時 2026-05-29 07:26:58
合計ジャッジ時間 1,429 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(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