結果

問題 No.501 穴と文字列
ユーザー tailstails
提出日時 2017-04-07 22:33:19
言語 Perl
(5.38.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 94 bytes
コンパイル時間 441 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,348 KB
最終ジャッジ日時 2023-08-21 06:59:53
合計ジャッジ時間 1,482 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,140 KB
testcase_01 AC 6 ms
5,228 KB
testcase_02 AC 6 ms
5,204 KB
testcase_03 AC 6 ms
5,144 KB
testcase_04 AC 6 ms
5,148 KB
testcase_05 AC 6 ms
5,188 KB
testcase_06 AC 6 ms
5,204 KB
testcase_07 AC 6 ms
5,096 KB
testcase_08 AC 6 ms
5,196 KB
testcase_09 AC 6 ms
5,348 KB
testcase_10 AC 6 ms
5,164 KB
testcase_11 AC 6 ms
5,272 KB
testcase_12 AC 6 ms
5,192 KB
testcase_13 AC 6 ms
5,160 KB
testcase_14 AC 6 ms
5,204 KB
testcase_15 AC 6 ms
5,184 KB
testcase_16 AC 6 ms
5,184 KB
testcase_17 AC 6 ms
5,072 KB
testcase_18 AC 6 ms
5,192 KB
testcase_19 AC 6 ms
5,276 KB
testcase_20 AC 6 ms
5,200 KB
testcase_21 AC 6 ms
5,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$d)=glob<>;
if($n<$d){
	print 'A'x($n*2-$d),'B'x($d-$n)
}else{
	print 'A'x$d,'C'x($n-$d)
}
0