結果

問題 No.1672 404 Not Found
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-09-10 21:24:31
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 1,000 ms
コード長 284 bytes
コンパイル時間 506 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,148 KB
最終ジャッジ日時 2023-09-02 15:46:22
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
4,976 KB
testcase_01 AC 6 ms
5,148 KB
testcase_02 AC 6 ms
5,072 KB
testcase_03 AC 5 ms
4,860 KB
testcase_04 AC 6 ms
4,840 KB
testcase_05 AC 6 ms
4,864 KB
testcase_06 AC 6 ms
4,944 KB
testcase_07 AC 5 ms
4,844 KB
testcase_08 AC 6 ms
4,960 KB
testcase_09 AC 5 ms
4,980 KB
testcase_10 AC 6 ms
5,036 KB
testcase_11 AC 6 ms
5,108 KB
testcase_12 AC 5 ms
5,068 KB
testcase_13 AC 6 ms
4,964 KB
testcase_14 AC 6 ms
4,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;
use feature qw/state/;

sub output {
    print "@_\n";
}

sub input {
    state @que;
    if (@que == 0) {
        chomp(my $line = <>);
        push @que, split / /, $line;
    }
    return shift @que;
}

my $s = input;
output($s =~ /^[45]/ ? "Yes" : "No");
0