結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー takepantakepan
提出日時 2016-11-18 23:35:41
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 32,148 KB
実行使用メモリ 32,660 KB
最終ジャッジ日時 2024-05-04 18:54:45
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
32,528 KB
testcase_01 AC 37 ms
32,532 KB
testcase_02 AC 38 ms
32,532 KB
testcase_03 WA -
testcase_04 AC 38 ms
32,400 KB
testcase_05 AC 36 ms
32,532 KB
testcase_06 AC 38 ms
32,532 KB
testcase_07 AC 35 ms
32,528 KB
testcase_08 AC 37 ms
32,400 KB
testcase_09 AC 37 ms
32,656 KB
testcase_10 AC 35 ms
32,600 KB
testcase_11 AC 35 ms
32,404 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    fscanf (STDIN, "%s", $A);
    fscanf (STDIN, "%s", $B);

    if (!preg_match("/^(0|[1-9][0-9]+)$/", $A)) {
    	exit("NG\n");
    }

    if (!preg_match("/^(0|[1-9][0-9]+)$/", $B)) {
    	exit("NG\n");
    }

    if ($A <= 12345 && $B <= 12345) {
    	echo ($A + $B) . "\n";
    } else {
    	echo "NG\n";
    }
0