結果
問題 | No.871 かえるのうた |
ユーザー | ttr |
提出日時 | 2020-02-04 20:34:24 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 11,920 KB |
実行使用メモリ | 27,212 KB |
最終ジャッジ日時 | 2023-10-21 06:33:02 |
合計ジャッジ時間 | 4,565 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 25 ms
10,192 KB |
testcase_01 | WA | - |
testcase_02 | AC | 28 ms
10,192 KB |
testcase_03 | WA | - |
testcase_04 | AC | 29 ms
10,196 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 27 ms
10,300 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 166 ms
26,676 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | AC | 40 ms
11,584 KB |
testcase_21 | WA | - |
testcase_22 | AC | 27 ms
10,196 KB |
testcase_23 | WA | - |
testcase_24 | AC | 25 ms
10,192 KB |
testcase_25 | AC | 30 ms
10,536 KB |
testcase_26 | AC | 37 ms
11,484 KB |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 116 ms
21,940 KB |
testcase_31 | WA | - |
testcase_32 | AC | 105 ms
20,448 KB |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | AC | 78 ms
17,156 KB |
testcase_38 | AC | 154 ms
26,116 KB |
testcase_39 | WA | - |
testcase_40 | AC | 102 ms
17,784 KB |
testcase_41 | AC | 25 ms
10,192 KB |
testcase_42 | AC | 100 ms
17,784 KB |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | AC | 29 ms
10,192 KB |
testcase_47 | AC | 27 ms
10,192 KB |
testcase_48 | AC | 27 ms
10,192 KB |
ソースコード
N,K = map(int, input().split()) X = [int(x) for x in input().split()] A = [int(a) for a in input().split()] l = K-1 p = A[l] while l > 0: p = min(p, X[l]-A[l]) if X[l-1] >= p: l -= 1 else: break r = K-1 p = A[r] while r < N-1: p = max(p, X[r]+A[r]) if X[r+1] <= p: r += 1 else: break print(r-l+1)