結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
|
提出日時 | 2018-01-14 02:57:15 |
言語 | PHP (843.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 432 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 30,804 KB |
実行使用メモリ | 31,152 KB |
最終ジャッジ日時 | 2024-12-24 01:03:40 |
合計ジャッジ時間 | 2,757 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 23 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $judge = true; $judge2 = true; $array = []; $line = fgets(STDIN); for($count = 0; $count < $line; $count ++){ array_push($array, fgets(STDIN)); $current = current($array) + $count; $next = $current ++; $prev = $current --; $nextNum = next($array); $prevNum = prev($array); if($next != $nextNum || $prev != $prevNum) { $judge = false; } } if ($judge === true) { printf('T'); } else { printf('F'); } ?>