結果

問題 No.3081 HQ9+
ユーザー tailstails
提出日時 2021-04-01 21:13:44
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 86 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 4,776 KB
最終ジャッジ日時 2023-08-23 05:08:58
合計ジャッジ時間 1,166 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,580 KB
testcase_01 AC 3 ms
4,468 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,420 KB
testcase_04 AC 2 ms
4,512 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 2 ms
4,516 KB
testcase_14 AC 2 ms
4,544 KB
testcase_15 AC 3 ms
4,520 KB
testcase_16 AC 2 ms
4,564 KB
testcase_17 AC 2 ms
4,468 KB
testcase_18 AC 2 ms
4,476 KB
testcase_19 AC 2 ms
4,448 KB
testcase_20 AC 3 ms
4,708 KB
testcase_21 AC 3 ms
4,716 KB
testcase_22 AC 3 ms
4,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
$_=<>;chop;
$q=y/Q//;
$s=$q?substr$_,0,$n/$q:$/;
print $s x $q eq $_ ? $s : -1;
0