結果

問題 No.3081 HQ9+
ユーザー tailstails
提出日時 2021-04-01 21:25:31
言語 Perl
(5.38.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 101 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 4,840 KB
最終ジャッジ日時 2023-08-23 05:30:48
合計ジャッジ時間 1,071 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,592 KB
testcase_01 AC 3 ms
4,628 KB
testcase_02 AC 3 ms
4,716 KB
testcase_03 AC 2 ms
4,644 KB
testcase_04 AC 3 ms
4,512 KB
testcase_05 AC 2 ms
4,596 KB
testcase_06 AC 2 ms
4,648 KB
testcase_07 AC 2 ms
4,644 KB
testcase_08 AC 3 ms
4,712 KB
testcase_09 AC 3 ms
4,636 KB
testcase_10 AC 3 ms
4,592 KB
testcase_11 AC 2 ms
4,588 KB
testcase_12 AC 2 ms
4,628 KB
testcase_13 AC 3 ms
4,840 KB
testcase_14 AC 3 ms
4,636 KB
testcase_15 AC 2 ms
4,748 KB
testcase_16 AC 3 ms
4,640 KB
testcase_17 AC 2 ms
4,528 KB
testcase_18 AC 3 ms
4,804 KB
testcase_19 AC 2 ms
4,776 KB
testcase_20 AC 3 ms
4,688 KB
testcase_21 AC 2 ms
4,800 KB
testcase_22 AC 3 ms
4,612 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
$_=<>;chop;
$q=int sqrt y/Q//;
print !/H/ && $q && ($c=substr$_,0,$n/$q) x $q eq $_ ? $c : -1;
0