結果

問題 No.88 次はどっちだ
ユーザー papinianuspapinianus
提出日時 2016-06-07 15:57:26
言語 PHP
(8.3.4)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 4,891 ms
コンパイル使用メモリ 30,692 KB
実行使用メモリ 31,328 KB
最終ジャッジ日時 2024-04-17 05:41:18
合計ジャッジ時間 1,077 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
31,196 KB
testcase_01 AC 38 ms
31,272 KB
testcase_02 AC 40 ms
31,244 KB
testcase_03 AC 39 ms
31,152 KB
testcase_04 AC 39 ms
31,232 KB
testcase_05 AC 39 ms
31,256 KB
testcase_06 AC 39 ms
31,116 KB
testcase_07 AC 38 ms
31,236 KB
testcase_08 AC 37 ms
31,328 KB
testcase_09 AC 37 ms
31,292 KB
testcase_10 AC 37 ms
30,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$sente = trim(fgets(STDIN));
$opponent = ['yukiko'=>'oda', 'oda'=>'yukiko'];
$i = 8;
$chars = '';
while($i) {
    $chars .= str_replace('.', '', trim(fgets(STDIN)));
    $i--;
}
$which = strlen($chars) % 2;
if($which) {
    echo $opponent[$sente];
} else {
    echo $sente;
}
echo PHP_EOL;
0