結果

問題 No.1692 Expectations
ユーザー first_vil
提出日時 2020-10-05 08:23:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 102,912 KB
最終ジャッジ日時 2024-07-19 09:36:51
合計ジャッジ時間 2,803 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    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()
0