結果
問題 | No.2777 Wild Flush |
ユーザー | あじゃじゃ |
提出日時 | 2024-06-07 22:10:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 205 bytes |
コンパイル時間 | 304 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 82,280 KB |
最終ジャッジ日時 | 2024-06-07 22:10:36 |
合計ジャッジ時間 | 2,693 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 35 ms
52,916 KB |
testcase_01 | AC | 36 ms
52,608 KB |
testcase_02 | AC | 36 ms
53,496 KB |
testcase_03 | AC | 36 ms
52,136 KB |
testcase_04 | AC | 36 ms
53,020 KB |
testcase_05 | AC | 36 ms
52,124 KB |
testcase_06 | AC | 36 ms
52,440 KB |
testcase_07 | AC | 36 ms
52,100 KB |
testcase_08 | AC | 36 ms
52,184 KB |
testcase_09 | AC | 56 ms
79,668 KB |
testcase_10 | AC | 59 ms
79,040 KB |
testcase_11 | AC | 53 ms
78,648 KB |
testcase_12 | AC | 58 ms
81,680 KB |
testcase_13 | AC | 58 ms
81,732 KB |
testcase_14 | AC | 60 ms
81,996 KB |
testcase_15 | AC | 58 ms
81,268 KB |
testcase_16 | AC | 40 ms
61,404 KB |
testcase_17 | AC | 66 ms
82,280 KB |
testcase_18 | AC | 54 ms
74,808 KB |
testcase_19 | AC | 51 ms
74,884 KB |
testcase_20 | AC | 45 ms
64,956 KB |
testcase_21 | AC | 44 ms
63,296 KB |
testcase_22 | AC | 51 ms
72,688 KB |
testcase_23 | AC | 51 ms
72,468 KB |
testcase_24 | AC | 53 ms
74,744 KB |
testcase_25 | AC | 62 ms
81,596 KB |
testcase_26 | AC | 59 ms
79,592 KB |
testcase_27 | AC | 50 ms
70,096 KB |
testcase_28 | AC | 47 ms
63,976 KB |
ソースコード
N,K=map(int,input().split()) A=list(map(int,input().split())) d=[0]*(N+1) zero=0 for a in A: if a!=0: d[a]+=1 else: zero+=1 if zero+max(d)>=K: print("Yes") else: print("No")