結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,584 KB
testcase_01 AC 3 ms
4,532 KB
testcase_02 AC 3 ms
4,420 KB
testcase_03 AC 2 ms
4,396 KB
testcase_04 AC 2 ms
4,524 KB
testcase_05 AC 3 ms
4,516 KB
testcase_06 AC 3 ms
4,388 KB
testcase_07 AC 2 ms
4,428 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 3 ms
4,528 KB
testcase_12 AC 2 ms
4,536 KB
testcase_13 AC 3 ms
4,432 KB
testcase_14 AC 2 ms
4,552 KB
testcase_15 AC 2 ms
4,472 KB
testcase_16 AC 3 ms
4,408 KB
testcase_17 AC 3 ms
4,508 KB
testcase_18 AC 3 ms
4,616 KB
testcase_19 AC 3 ms
4,484 KB
testcase_20 AC 3 ms
4,784 KB
testcase_21 AC 3 ms
4,584 KB
testcase_22 AC 3 ms
4,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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