結果

問題 No.24 数当てゲーム
ユーザー teioteio
提出日時 2020-07-25 07:00:15
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 4,844 KB
最終ジャッジ日時 2023-09-08 16:50:43
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,636 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 3 ms
4,760 KB
testcase_04 WA -
testcase_05 AC 3 ms
4,768 KB
testcase_06 WA -
testcase_07 AC 2 ms
4,684 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

# use strict;
# use warnings;

my %d;
$d{$_} = 0 foreach 0 .. 9;
<>;
while (<>) {
    chomp;
    my @x = split(/\s/);
    my @ds = @x[0 .. ($#x - 1)];
    my $b = $x[-1];
    if ($b eq 'NO') {
        delete $d{$_} foreach @ds;
    }
    last if scalar(keys(%d)) == 1;
}
print((keys(%d))[0], "\n");
0