結果

問題 No.138 化石のバージョン
ユーザー togaerrortogaerror
提出日時 2015-03-11 17:49:58
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 6,176 KB
実行使用メモリ 6,460 KB
最終ジャッジ日時 2023-09-06 23:18:26
合計ジャッジ時間 3,213 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,336 KB
testcase_01 AC 14 ms
6,232 KB
testcase_02 AC 14 ms
6,296 KB
testcase_03 AC 14 ms
6,296 KB
testcase_04 AC 14 ms
6,180 KB
testcase_05 AC 14 ms
6,232 KB
testcase_06 AC 14 ms
6,232 KB
testcase_07 AC 13 ms
6,180 KB
testcase_08 AC 14 ms
6,440 KB
testcase_09 AC 14 ms
6,392 KB
testcase_10 AC 13 ms
6,236 KB
testcase_11 AC 13 ms
6,384 KB
testcase_12 AC 13 ms
6,332 KB
testcase_13 AC 14 ms
6,180 KB
testcase_14 AC 14 ms
6,116 KB
testcase_15 AC 13 ms
6,188 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 13 ms
6,300 KB
testcase_20 AC 14 ms
6,344 KB
testcase_21 WA -
testcase_22 AC 14 ms
6,296 KB
testcase_23 AC 13 ms
6,128 KB
testcase_24 AC 14 ms
6,120 KB
testcase_25 AC 13 ms
6,300 KB
testcase_26 AC 14 ms
6,328 KB
testcase_27 AC 14 ms
6,104 KB
testcase_28 AC 13 ms
6,108 KB
testcase_29 AC 14 ms
6,332 KB
testcase_30 AC 14 ms
6,192 KB
testcase_31 AC 14 ms
6,144 KB
testcase_32 AC 14 ms
6,232 KB
testcase_33 AC 14 ms
6,236 KB
testcase_34 AC 13 ms
6,228 KB
testcase_35 AC 13 ms
6,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/perl

use strict;
use warnings;
use Data::Dumper;

my $abc = <>;
my $def = <>;
chomp $abc;
chomp $def;

my @ver = split /\./, $abc;
my @ver2 = split /\./, $def;


for(my $i = 0; $i < 3; $i++) {
	if($ver[$i] > $ver2[$i]) {
		print "YES\n";
		exit;
	} elsif($ver[$i] < $ver2[$i])  {
		print "NO\n";
		exit;
	}
}
0