結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
c
|
| 提出日時 | 2015-12-10 11:56:15 |
| 言語 | PHP (843.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| コンパイル時間 | 2,715 ms |
| コンパイル使用メモリ | 31,892 KB |
| 実行使用メモリ | 32,532 KB |
| 最終ジャッジ日時 | 2024-09-15 07:27:59 |
| 合計ジャッジ時間 | 1,084 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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