結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー kuroi_13kuroi_13
提出日時 2017-01-27 21:07:23
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 5,088 KB
最終ジャッジ日時 2023-08-25 03:43:44
合計ジャッジ時間 1,018 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,028 KB
testcase_01 AC 5 ms
5,088 KB
testcase_02 AC 6 ms
5,084 KB
testcase_03 WA -
testcase_04 AC 5 ms
4,948 KB
testcase_05 AC 5 ms
4,860 KB
testcase_06 AC 4 ms
4,944 KB
testcase_07 AC 5 ms
4,844 KB
testcase_08 AC 4 ms
4,944 KB
testcase_09 AC 4 ms
4,840 KB
testcase_10 AC 5 ms
4,836 KB
testcase_11 AC 5 ms
5,052 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my($a, $b) = (<>, <>);
my $ans = 'OK';

if($a > 12345 or $b > 12345){
    $ans = 'NG';
}
if($a =~ m/[^\d]/g or $b =~ m/[^\d]/g){
    $ans  = 'NG';
}
if($a =~ m/0\d/ or $b =~ m/0\d/){
    $ans = 'NG';
}

print $ans;
0