結果

問題 No.2194 兄弟の掛け引き
ユーザー tailstails
提出日時 2023-01-20 21:23:09
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 1,000 ms
コード長 139 bytes
コンパイル時間 811 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,316 KB
最終ジャッジ日時 2023-09-05 13:29:36
合計ジャッジ時間 1,712 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,316 KB
testcase_01 AC 6 ms
5,080 KB
testcase_02 AC 6 ms
5,176 KB
testcase_03 AC 6 ms
5,140 KB
testcase_04 AC 6 ms
5,012 KB
testcase_05 AC 6 ms
5,232 KB
testcase_06 AC 6 ms
5,140 KB
testcase_07 AC 6 ms
5,140 KB
testcase_08 AC 6 ms
5,060 KB
testcase_09 AC 6 ms
5,308 KB
testcase_10 AC 6 ms
5,084 KB
testcase_11 AC 6 ms
5,192 KB
testcase_12 AC 6 ms
5,236 KB
testcase_13 AC 6 ms
5,036 KB
testcase_14 AC 6 ms
5,312 KB
testcase_15 AC 6 ms
5,212 KB
testcase_16 AC 6 ms
5,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($a,$b,$c)=glob<>;
if($c<=$b&&$c%$a==0){
	push@a,$c/$a;
}
$c+=$b;
if($c%$a==0){
	push@a,$c/$a;
}
if(!@a){
	push@a,-1;
}
print join"\n",@a;
0