結果

問題 No.871 かえるのうた
ユーザー %20%20
提出日時 2019-08-30 22:40:05
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 571 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 36,796 KB
最終ジャッジ日時 2024-05-01 19:15:05
合計ジャッジ時間 16,365 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
5,888 KB
testcase_04 AC 7 ms
5,888 KB
testcase_05 AC 7 ms
5,888 KB
testcase_06 WA -
testcase_07 AC 7 ms
5,760 KB
testcase_08 AC 23 ms
6,784 KB
testcase_09 AC 27 ms
6,912 KB
testcase_10 AC 10 ms
6,016 KB
testcase_11 AC 15 ms
6,144 KB
testcase_12 AC 143 ms
11,684 KB
testcase_13 AC 37 ms
7,040 KB
testcase_14 AC 695 ms
36,428 KB
testcase_15 AC 700 ms
36,468 KB
testcase_16 AC 774 ms
36,796 KB
testcase_17 AC 700 ms
34,496 KB
testcase_18 AC 109 ms
11,732 KB
testcase_19 WA -
testcase_20 AC 70 ms
8,448 KB
testcase_21 AC 285 ms
17,120 KB
testcase_22 AC 7 ms
5,888 KB
testcase_23 AC 7 ms
5,888 KB
testcase_24 AC 7 ms
5,760 KB
testcase_25 AC 19 ms
6,400 KB
testcase_26 AC 57 ms
8,832 KB
testcase_27 AC 89 ms
10,432 KB
testcase_28 AC 7 ms
5,888 KB
testcase_29 AC 333 ms
24,332 KB
testcase_30 AC 572 ms
28,036 KB
testcase_31 AC 28 ms
6,656 KB
testcase_32 AC 511 ms
25,460 KB
testcase_33 WA -
testcase_34 AC 195 ms
13,796 KB
testcase_35 AC 470 ms
23,912 KB
testcase_36 AC 658 ms
30,348 KB
testcase_37 AC 357 ms
18,228 KB
testcase_38 AC 838 ms
34,248 KB
testcase_39 WA -
testcase_40 AC 267 ms
24,976 KB
testcase_41 AC 7 ms
5,760 KB
testcase_42 AC 214 ms
24,976 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 6 ms
5,888 KB
testcase_47 AC 6 ms
5,888 KB
testcase_48 AC 6 ms
5,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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