結果

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

テストケース

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

ソースコード

diff #

<?php
$array=array();
$ans;
$exit=false;
for($i=2;$i<=20;$i++){
  array_push($array,$i);
}
$N=(int)trim(fgets(STDIN));
$random=rand(1,10);
$exit=array_search($N-$random,$array);
$ans=$random." ".($exit+2);
echo $ans;
0