結果

問題 No.871 かえるのうた
ユーザー ああいいああいい
提出日時 2022-04-19 18:42:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 96,248 KB
最終ジャッジ日時 2023-08-30 16:53:55
合計ジャッジ時間 7,925 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,220 KB
testcase_01 WA -
testcase_02 AC 68 ms
71,284 KB
testcase_03 AC 66 ms
71,280 KB
testcase_04 AC 66 ms
71,312 KB
testcase_05 AC 66 ms
71,328 KB
testcase_06 WA -
testcase_07 AC 65 ms
71,188 KB
testcase_08 AC 67 ms
75,448 KB
testcase_09 AC 68 ms
75,524 KB
testcase_10 AC 69 ms
75,488 KB
testcase_11 AC 70 ms
75,804 KB
testcase_12 AC 73 ms
77,628 KB
testcase_13 AC 69 ms
75,448 KB
testcase_14 AC 119 ms
93,760 KB
testcase_15 AC 117 ms
93,492 KB
testcase_16 AC 120 ms
95,600 KB
testcase_17 AC 109 ms
93,616 KB
testcase_18 AC 75 ms
78,516 KB
testcase_19 WA -
testcase_20 AC 75 ms
76,548 KB
testcase_21 AC 94 ms
86,588 KB
testcase_22 AC 67 ms
71,256 KB
testcase_23 AC 67 ms
71,180 KB
testcase_24 AC 66 ms
71,184 KB
testcase_25 AC 71 ms
76,320 KB
testcase_26 AC 74 ms
76,156 KB
testcase_27 AC 72 ms
76,280 KB
testcase_28 AC 65 ms
71,184 KB
testcase_29 AC 89 ms
92,876 KB
testcase_30 AC 105 ms
96,248 KB
testcase_31 AC 70 ms
75,744 KB
testcase_32 AC 101 ms
95,824 KB
testcase_33 WA -
testcase_34 AC 76 ms
79,904 KB
testcase_35 AC 91 ms
92,612 KB
testcase_36 AC 100 ms
94,828 KB
testcase_37 AC 93 ms
88,172 KB
testcase_38 AC 113 ms
93,464 KB
testcase_39 WA -
testcase_40 AC 91 ms
93,444 KB
testcase_41 AC 66 ms
71,276 KB
testcase_42 AC 90 ms
93,420 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 65 ms
71,184 KB
testcase_47 AC 67 ms
71,328 KB
testcase_48 AC 67 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
X = list(map(int,input().split()))
A = list(map(int,input().split()))
migi = K
K -= 1
now = X[K] + A[K]
while migi < N and X[migi] <= now:
    now = max(now,X[migi] + A[migi])
    migi += 1
hidari = K
now = X[K] - A[K]
while hidari >= 0 and X[hidari] >= now:
    now = min(now,X[hidari] - A[hidari])
    hidari -= 1
print(migi - hidari - 1)
0