結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
c
|
| 提出日時 | 2015-12-10 11:36:11 |
| 言語 | PHP (843.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| コンパイル時間 | 2,621 ms |
| コンパイル使用メモリ | 32,400 KB |
| 実行使用メモリ | 32,784 KB |
| 最終ジャッジ日時 | 2024-09-15 07:27:32 |
| 合計ジャッジ時間 | 2,770 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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