結果

問題 No.651 E869120 and Driving
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-09-08 10:25:25
言語 Perl
(5.38.2)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 397 bytes
コンパイル時間 729 ms
コンパイル使用メモリ 6,904 KB
実行使用メモリ 6,984 KB
最終ジャッジ日時 2023-08-26 15:05:31
合計ジャッジ時間 1,817 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
6,748 KB
testcase_01 AC 19 ms
6,984 KB
testcase_02 AC 18 ms
6,952 KB
testcase_03 AC 18 ms
6,852 KB
testcase_04 AC 18 ms
6,956 KB
testcase_05 AC 18 ms
6,808 KB
testcase_06 AC 19 ms
6,800 KB
testcase_07 AC 18 ms
6,960 KB
testcase_08 AC 18 ms
6,824 KB
testcase_09 AC 19 ms
6,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;
use feature qw/state/;
use Time::Piece;

sub output {
    my $line = join " ", @_;
    print "$line\n";
}

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

my $a = input;
my $t = Time::Piece->strptime("10:00", "%H:%M") + ($a / 100 * 60 * 60);
output $t->strftime("%H:%M");
0