結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
c
|
| 提出日時 | 2015-12-10 11:56:15 |
| 言語 | PHP (8.5.4) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 2,848 ms |
| コンパイル使用メモリ | 36,272 KB |
| 実行使用メモリ | 37,036 KB |
| 最終ジャッジ日時 | 2026-04-04 18:15:03 |
| 合計ジャッジ時間 | 1,429 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 11 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$players = array('oda'=>'oda','yukiko'=>'yukiko');
fscanf(STDIN, "%s", $first_player);
for($i=0; $i<8; $i++){
$dot_count = substr_count(fscanf(STDIN, "%s"),'.');
$total += (8 - $dot_count);
}
if($total%2 === 0){
echo $first_player;
}else{
unset($players[$first_player]);
echo array_shift($players);
}
echo "\n";
?>
c