結果

問題 No.871 かえるのうた
ユーザー %20%20
提出日時 2019-08-30 22:47:45
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 41,856 KB
最終ジャッジ日時 2024-05-01 19:35:33
合計ジャッジ時間 10,574 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,888 KB
testcase_01 WA -
testcase_02 AC 6 ms
5,888 KB
testcase_03 AC 7 ms
6,016 KB
testcase_04 AC 7 ms
5,888 KB
testcase_05 AC 6 ms
5,888 KB
testcase_06 WA -
testcase_07 AC 6 ms
6,016 KB
testcase_08 AC 18 ms
7,040 KB
testcase_09 AC 20 ms
7,168 KB
testcase_10 AC 9 ms
6,272 KB
testcase_11 AC 12 ms
6,528 KB
testcase_12 AC 91 ms
12,852 KB
testcase_13 AC 26 ms
7,424 KB
testcase_14 AC 454 ms
39,704 KB
testcase_15 AC 476 ms
39,632 KB
testcase_16 AC 528 ms
41,612 KB
testcase_17 AC 479 ms
37,372 KB
testcase_18 AC 83 ms
13,068 KB
testcase_19 WA -
testcase_20 AC 50 ms
8,832 KB
testcase_21 AC 199 ms
18,208 KB
testcase_22 AC 8 ms
5,888 KB
testcase_23 AC 6 ms
5,888 KB
testcase_24 AC 6 ms
5,888 KB
testcase_25 AC 16 ms
6,784 KB
testcase_26 AC 48 ms
9,472 KB
testcase_27 AC 67 ms
11,452 KB
testcase_28 AC 6 ms
6,016 KB
testcase_29 AC 248 ms
28,432 KB
testcase_30 AC 424 ms
31,600 KB
testcase_31 AC 21 ms
6,784 KB
testcase_32 AC 427 ms
29,656 KB
testcase_33 WA -
testcase_34 AC 148 ms
15,536 KB
testcase_35 AC 350 ms
27,560 KB
testcase_36 AC 557 ms
35,572 KB
testcase_37 AC 293 ms
20,268 KB
testcase_38 AC 662 ms
38,424 KB
testcase_39 WA -
testcase_40 AC 272 ms
29,228 KB
testcase_41 AC 6 ms
5,888 KB
testcase_42 AC 218 ms
29,232 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 7 ms
5,888 KB
testcase_47 AC 7 ms
5,888 KB
testcase_48 AC 6 ms
5,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($N,$K)=glob<>;
--$K;
@X=glob<>;
@A=glob<>;
for($L=$X[$l=$K];$l>=0&&$L<=$X[$l];--$l){
	if($X[$l]-$A[$l]<$L){
		$L=$X[$l]-$A[$l]
	}
}
for($R=$X[$r=$K];$r<$N&&$X[$r]<=$R;++$r){
	if($R<$X[$r]+$A[$r]){
		$R=$X[$r]+$A[$r]
	}
}
print$r-$l-1
0