結果

問題 No.185 和風
ユーザー tailstails
提出日時 2015-04-19 23:24:26
言語 Perl
(5.38.2)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 138 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 4,836 KB
最終ジャッジ日時 2023-09-18 01:16:38
合計ジャッジ時間 834 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,668 KB
testcase_01 AC 4 ms
4,836 KB
testcase_02 AC 2 ms
4,752 KB
testcase_03 AC 3 ms
4,632 KB
testcase_04 AC 2 ms
4,800 KB
testcase_05 AC 3 ms
4,516 KB
testcase_06 AC 4 ms
4,748 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
($x,$y)=<>=~/\d+/g;
$d=$y-$x;
print(-1),exit if$d<1;
for(<>){
    ($x,$y)=/\d+/g;
    $e=$y-$x;
    print(-1),exit if$d-$e;
}
print$d;
0