結果
問題 |
No.1643 Not Substring
|
ユーザー |
|
提出日時 | 2021-12-04 11:48:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-06 16:51:12 |
合計ジャッジ時間 | 1,757 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 26 |
ソースコード
N,M = list(map(int,input().split())) A = list(map(int,input().split())) count = [0] * (M+1) kind = 0 for i in A: if count[i] == 0: count[i] += 1 kind += 1 if N == M and kind == 1: _min = 1 else: _min = 0 print(kind,_min)