結果

問題 No.687 E869120 and Constructing Array 1
ユーザー ayaaya
提出日時 2019-08-02 14:08:27
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 18,752 KB
実行使用メモリ 18,976 KB
最終ジャッジ日時 2023-09-18 18:12:27
合計ジャッジ時間 1,291 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,904 KB
testcase_01 AC 16 ms
18,924 KB
testcase_02 AC 16 ms
18,900 KB
testcase_03 AC 16 ms
18,892 KB
testcase_04 AC 17 ms
18,916 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 15 ms
18,860 KB
testcase_08 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?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;

0