結果

問題 No.687 E869120 and Constructing Array 1
ユーザー dyechidyechi
提出日時 2019-03-28 17:14:27
言語 PHP
(8.3.4)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 196 bytes
コンパイル時間 3,319 ms
コンパイル使用メモリ 31,760 KB
実行使用メモリ 31,180 KB
最終ジャッジ日時 2024-04-21 08:13:29
合計ジャッジ時間 1,942 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
30,936 KB
testcase_01 AC 39 ms
30,828 KB
testcase_02 AC 40 ms
30,596 KB
testcase_03 AC 40 ms
31,180 KB
testcase_04 AC 40 ms
30,764 KB
testcase_05 AC 41 ms
30,820 KB
testcase_06 AC 40 ms
30,928 KB
testcase_07 AC 40 ms
30,644 KB
testcase_08 AC 40 ms
31,180 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s = trim(fgets(STDIN));

for ($i=1; $i<=10; $i++) {
    for ($j=1; $j<=10; $j++) {
        if ($s == $i + $j) {
            echo $i." ".$j.PHP_EOL;
            break 2;
        }
    }
}
?>
0