結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー e-teste-test
提出日時 2017-02-14 18:26:40
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 1,125 ms
コンパイル使用メモリ 18,592 KB
実行使用メモリ 18,996 KB
最終ジャッジ日時 2023-08-28 16:51:31
合計ジャッジ時間 1,212 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,764 KB
testcase_01 AC 16 ms
18,860 KB
testcase_02 AC 16 ms
18,932 KB
testcase_03 AC 16 ms
18,948 KB
testcase_04 AC 16 ms
18,852 KB
testcase_05 AC 15 ms
18,840 KB
testcase_06 AC 16 ms
18,696 KB
testcase_07 AC 16 ms
18,736 KB
testcase_08 AC 16 ms
18,888 KB
testcase_09 AC 16 ms
18,880 KB
testcase_10 AC 16 ms
18,876 KB
testcase_11 AC 15 ms
18,788 KB
testcase_12 AC 16 ms
18,996 KB
testcase_13 AC 16 ms
18,820 KB
testcase_14 AC 16 ms
18,868 KB
testcase_15 AC 15 ms
18,996 KB
testcase_16 AC 16 ms
18,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, "%s", $str1);
fscanf(STDIN, "%s", $str2);

// main
if (!checkNum($str1)) { exit('NG'); };
if (!checkNum($str2)) { exit('NG'); };
exit('OK');

function checkNum($val) {
    if ($val !== (string)(int)$val) {
        return false;
    }
    if ($val >= 0 && $val <= 12345) {
        return true;
    }
    return false;
}
0