結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
c
|
| 提出日時 | 2015-12-10 11:36:11 |
| 言語 | PHP (8.5.4) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 2,673 ms |
| コンパイル使用メモリ | 36,656 KB |
| 実行使用メモリ | 37,296 KB |
| 最終ジャッジ日時 | 2026-04-04 18:14:59 |
| 合計ジャッジ時間 | 4,034 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / 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