結果

問題 No.469 区間加算と一致検索の問題
ユーザー %20%20
提出日時 2016-12-19 10:10:04
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 827 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 44,032 KB
最終ジャッジ日時 2024-05-08 06:55:37
合計ジャッジ時間 28,580 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
6,016 KB
testcase_01 AC 7 ms
5,888 KB
testcase_02 AC 7 ms
5,888 KB
testcase_03 AC 45 ms
7,680 KB
testcase_04 AC 53 ms
7,936 KB
testcase_05 AC 63 ms
8,448 KB
testcase_06 AC 67 ms
8,704 KB
testcase_07 AC 71 ms
8,960 KB
testcase_08 AC 79 ms
9,216 KB
testcase_09 AC 35 ms
7,168 KB
testcase_10 AC 73 ms
6,400 KB
testcase_11 AC 27 ms
6,784 KB
testcase_12 WA -
testcase_13 AC 52 ms
7,808 KB
testcase_14 AC 21 ms
6,528 KB
testcase_15 WA -
testcase_16 AC 80 ms
8,960 KB
testcase_17 AC 68 ms
8,704 KB
testcase_18 AC 68 ms
8,832 KB
testcase_19 AC 17 ms
6,272 KB
testcase_20 AC 84 ms
9,344 KB
testcase_21 AC 24 ms
6,656 KB
testcase_22 AC 9 ms
6,016 KB
testcase_23 AC 448 ms
24,832 KB
testcase_24 AC 448 ms
24,832 KB
testcase_25 AC 431 ms
24,832 KB
testcase_26 AC 435 ms
24,704 KB
testcase_27 AC 444 ms
24,960 KB
testcase_28 AC 477 ms
24,960 KB
testcase_29 AC 430 ms
24,704 KB
testcase_30 AC 442 ms
24,704 KB
testcase_31 AC 443 ms
24,832 KB
testcase_32 AC 455 ms
24,832 KB
testcase_33 AC 1,402 ms
44,032 KB
testcase_34 AC 1,377 ms
44,032 KB
testcase_35 AC 1,342 ms
43,904 KB
testcase_36 AC 1,332 ms
43,904 KB
testcase_37 AC 1,315 ms
43,776 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 AC 8 ms
5,888 KB
testcase_49 AC 8 ms
6,016 KB
testcase_50 WA -
testcase_51 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub h{(1234567*$_[0]+759213)*$_[0]}
sub H{(6423278*$_[0]+981089)*$_[0]}
$h=$H=0;<>;
	($q,$L,$R,$K)=glob,
	'!'eq$q?
		$h{$h+=$K*(h($L)-h($R))}{$H+=$K*(H($L)-H($R))}//=$.-1
	:
		print$h{$h}{$H}+0,$/
while<>
0