結果
| 問題 |
No.687 E869120 and Constructing Array 1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-02 14:08:27 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 30,560 KB |
| 実行使用メモリ | 31,124 KB |
| 最終ジャッジ日時 | 2024-07-05 08:05:44 |
| 合計ジャッジ時間 | 1,170 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 5 WA * 1 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$array=array();
$ans;
$exit=false;
for($i=1;$i<=10;$i++){
array_push($array,$i);
}
$N=(int)trim(fgets(STDIN));
$random=1;
$exit=array_search($N-$random,$array);
$ans=$random." ".($exit+1);
echo $ans;