結果
| 問題 | 
                            No.1692 Expectations
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-10-05 08:20:46 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 240 bytes | 
| コンパイル時間 | 301 ms | 
| コンパイル使用メモリ | 82,468 KB | 
| 実行使用メモリ | 67,296 KB | 
| 最終ジャッジ日時 | 2024-07-19 09:36:43 | 
| 合計ジャッジ時間 | 2,599 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 2 | 
| other | RE * 20 | 
ソースコード
def main():
    input=sys.stdin.readline
    n,m=map(int,input().split())
    c=[0]*(m+1)
    ans=0
    for a in list(map(int,input().split())):
        if c[a]==0:
            ans+=1
        c[a]+=1
    print(ans,1 if ans==1 else 0)
main()