結果

問題 No.1692 Expectations
ユーザー first_vilfirst_vil
提出日時 2020-10-05 08:23:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 106,936 KB
最終ジャッジ日時 2023-09-26 15:30:24
合計ジャッジ時間 3,450 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,176 KB
testcase_01 AC 70 ms
71,408 KB
testcase_02 AC 71 ms
71,248 KB
testcase_03 AC 73 ms
71,376 KB
testcase_04 AC 71 ms
71,324 KB
testcase_05 AC 70 ms
71,428 KB
testcase_06 AC 72 ms
71,080 KB
testcase_07 AC 70 ms
71,132 KB
testcase_08 AC 73 ms
71,080 KB
testcase_09 AC 71 ms
71,276 KB
testcase_10 AC 108 ms
103,096 KB
testcase_11 AC 107 ms
103,100 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 80 ms
77,156 KB
testcase_15 AC 112 ms
103,188 KB
testcase_16 AC 79 ms
77,476 KB
testcase_17 AC 94 ms
88,720 KB
testcase_18 AC 82 ms
80,368 KB
testcase_19 AC 115 ms
106,936 KB
testcase_20 AC 103 ms
103,236 KB
testcase_21 AC 107 ms
106,800 KB
権限があれば一括ダウンロードができます

ソースコード

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