結果
| 問題 |
No.687 E869120 and Constructing Array 1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-02 14:00:43 |
| 言語 | PHP (843.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 30,968 KB |
| 実行使用メモリ | 35,940 KB |
| 最終ジャッジ日時 | 2024-07-05 08:05:35 |
| 合計ジャッジ時間 | 2,769 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 3 TLE * 1 -- * 2 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$array=array(2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
$ans;
$exit=false;
$N=(int)trim(fgets(STDIN));
while($exit===false){
$random=2;
$exit=array_search($N-$random,$array);
if($exit!==false){
$ans=$random." ".($exit+2);
echo $ans;
}
}