結果
| 問題 | 
                            No.2334 Distinct Cards
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-07-02 13:51:10 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 153 bytes | 
| コンパイル時間 | 163 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 24,308 KB | 
| 最終ジャッジ日時 | 2024-07-16 09:41:29 | 
| 合計ジャッジ時間 | 2,034 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 7 WA * 15 | 
ソースコード
n, k = list(map(int, input().split())) s = list(map(int, input().split())) new_s = s[:k] new_s = set(new_s) if n == 0: print(0) else: print(len(new_s))