結果

問題 No.1692 Expectations
ユーザー 👑 tamatotamato
提出日時 2021-10-01 21:22:29
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 160 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 87,460 KB
実行使用メモリ 136,800 KB
最終ジャッジ日時 2023-09-26 16:16:16
合計ジャッジ時間 3,633 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,620 KB
testcase_01 AC 78 ms
71,688 KB
testcase_02 AC 72 ms
71,800 KB
testcase_03 AC 74 ms
71,384 KB
testcase_04 AC 73 ms
71,452 KB
testcase_05 AC 73 ms
71,728 KB
testcase_06 AC 73 ms
71,596 KB
testcase_07 AC 73 ms
71,444 KB
testcase_08 AC 73 ms
71,424 KB
testcase_09 AC 72 ms
71,652 KB
testcase_10 AC 113 ms
101,816 KB
testcase_11 AC 112 ms
101,988 KB
testcase_12 AC 72 ms
71,408 KB
testcase_13 AC 73 ms
71,264 KB
testcase_14 AC 80 ms
77,436 KB
testcase_15 AC 127 ms
117,564 KB
testcase_16 AC 81 ms
77,716 KB
testcase_17 AC 102 ms
97,328 KB
testcase_18 AC 86 ms
82,160 KB
testcase_19 AC 151 ms
123,796 KB
testcase_20 AC 129 ms
127,388 KB
testcase_21 AC 160 ms
136,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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


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