結果

問題 No.1692 Expectations
ユーザー kept1994kept1994
提出日時 2022-04-29 04:06:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 342 bytes
コンパイル時間 1,368 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 124,172 KB
最終ジャッジ日時 2023-09-10 20:37:12
合計ジャッジ時間 4,037 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,228 KB
testcase_01 AC 71 ms
71,232 KB
testcase_02 AC 71 ms
71,084 KB
testcase_03 AC 75 ms
71,132 KB
testcase_04 AC 72 ms
71,264 KB
testcase_05 AC 71 ms
71,080 KB
testcase_06 AC 71 ms
71,232 KB
testcase_07 AC 70 ms
71,228 KB
testcase_08 AC 72 ms
71,060 KB
testcase_09 AC 72 ms
71,308 KB
testcase_10 AC 98 ms
91,016 KB
testcase_11 AC 97 ms
90,696 KB
testcase_12 AC 71 ms
70,932 KB
testcase_13 AC 70 ms
71,436 KB
testcase_14 AC 78 ms
77,180 KB
testcase_15 AC 116 ms
106,824 KB
testcase_16 AC 77 ms
77,480 KB
testcase_17 AC 94 ms
92,604 KB
testcase_18 AC 82 ms
80,920 KB
testcase_19 AC 122 ms
111,080 KB
testcase_20 AC 116 ms
116,512 KB
testcase_21 AC 125 ms
124,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

MOD = 998244353

def main():
    N, M = map(int, input().split())
    A = set(map(int, input().split()))
    if M == N:
        if len(A) == 1:
            print(len(A), 1)
        else:
            print(len(A), 0)
    else:
        print(len(A), 0)
    return

    

if __name__ == '__main__':
    main()
0