結果

問題 No.88 次はどっちだ
ユーザー neko_the_shadowneko_the_shadow
提出日時 2017-01-22 12:20:49
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 12,212 KB
最終ジャッジ日時 2023-08-24 19:59:07
合計ジャッジ時間 1,181 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
12,196 KB
testcase_01 AC 18 ms
12,200 KB
testcase_02 AC 18 ms
12,012 KB
testcase_03 AC 17 ms
12,212 KB
testcase_04 AC 18 ms
11,936 KB
testcase_05 AC 18 ms
12,060 KB
testcase_06 AC 17 ms
12,096 KB
testcase_07 AC 18 ms
12,204 KB
testcase_08 AC 18 ms
11,928 KB
testcase_09 AC 18 ms
12,100 KB
testcase_10 AC 19 ms
12,084 KB
権限があれば一括ダウンロードができます

ソースコード

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