結果

問題 No.530 年齢って毎年変わるし覚えるの難しいよね
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-09-01 10:28:12
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 5,272 KB
実行使用メモリ 5,144 KB
最終ジャッジ日時 2023-08-18 06:41:49
合計ジャッジ時間 2,811 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
4,940 KB
testcase_01 AC 6 ms
5,124 KB
testcase_02 AC 6 ms
5,080 KB
testcase_03 AC 6 ms
4,888 KB
testcase_04 AC 6 ms
5,084 KB
testcase_05 AC 6 ms
4,884 KB
testcase_06 AC 5 ms
5,080 KB
testcase_07 AC 6 ms
4,940 KB
testcase_08 AC 5 ms
5,080 KB
testcase_09 AC 6 ms
4,940 KB
testcase_10 AC 6 ms
4,940 KB
testcase_11 AC 5 ms
4,992 KB
testcase_12 AC 6 ms
4,916 KB
testcase_13 AC 6 ms
4,916 KB
testcase_14 AC 6 ms
4,860 KB
testcase_15 AC 5 ms
5,032 KB
testcase_16 AC 6 ms
4,980 KB
testcase_17 AC 6 ms
4,980 KB
testcase_18 AC 6 ms
5,132 KB
testcase_19 AC 6 ms
4,944 KB
testcase_20 AC 5 ms
5,080 KB
testcase_21 AC 5 ms
4,984 KB
testcase_22 AC 6 ms
5,144 KB
testcase_23 AC 5 ms
4,860 KB
testcase_24 AC 6 ms
5,036 KB
testcase_25 AC 6 ms
5,080 KB
testcase_26 AC 6 ms
5,068 KB
testcase_27 AC 6 ms
4,980 KB
testcase_28 AC 6 ms
5,104 KB
testcase_29 AC 5 ms
5,092 KB
testcase_30 AC 5 ms
5,088 KB
testcase_31 AC 6 ms
5,052 KB
testcase_32 AC 6 ms
4,976 KB
testcase_33 AC 6 ms
4,940 KB
testcase_34 AC 6 ms
4,940 KB
testcase_35 AC 6 ms
5,100 KB
testcase_36 AC 5 ms
5,028 KB
testcase_37 AC 6 ms
5,020 KB
testcase_38 AC 6 ms
5,080 KB
testcase_39 AC 5 ms
5,032 KB
testcase_40 AC 6 ms
5,028 KB
testcase_41 AC 6 ms
5,036 KB
testcase_42 AC 5 ms
5,024 KB
testcase_43 AC 6 ms
4,880 KB
testcase_44 AC 6 ms
4,984 KB
testcase_45 AC 6 ms
4,992 KB
testcase_46 AC 6 ms
4,984 KB
testcase_47 AC 5 ms
5,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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

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

my $y = input;
say 2017-$y;
0