結果

問題 No.1692 Expectations
ユーザー ogamiogami
提出日時 2021-10-01 21:27:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 1,087 bytes
コンパイル時間 413 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 140,440 KB
最終ジャッジ日時 2023-09-26 16:26:43
合計ジャッジ時間 4,076 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
71,580 KB
testcase_01 AC 104 ms
71,300 KB
testcase_02 AC 101 ms
71,144 KB
testcase_03 AC 102 ms
71,348 KB
testcase_04 AC 102 ms
71,452 KB
testcase_05 AC 95 ms
71,392 KB
testcase_06 AC 97 ms
71,676 KB
testcase_07 AC 95 ms
71,540 KB
testcase_08 AC 97 ms
71,340 KB
testcase_09 AC 95 ms
71,264 KB
testcase_10 AC 137 ms
102,592 KB
testcase_11 AC 137 ms
102,676 KB
testcase_12 AC 97 ms
71,344 KB
testcase_13 AC 96 ms
71,388 KB
testcase_14 AC 102 ms
78,348 KB
testcase_15 AC 152 ms
120,276 KB
testcase_16 AC 105 ms
78,700 KB
testcase_17 AC 127 ms
99,192 KB
testcase_18 AC 111 ms
83,296 KB
testcase_19 AC 159 ms
126,164 KB
testcase_20 AC 155 ms
130,892 KB
testcase_21 AC 168 ms
140,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil,pi,factorial,gcd,atan,degrees,sqrt
    from operator import itemgetter
    def I(): return int(input())
    def MI(): return map(int, input().split())
    def LI(): return list(map(int, input().split()))
    def SI(): return input().rstrip()
    def printns(x): print('\n'.join(x))
    def printni(x): print('\n'.join(list(map(str,x))))
    def myceil(a,b):
        return (-(-a//b))
    inf = 10**17
    mod = 10**9 + 7
    #mod =998244353

    n,m = MI()
    lis = LI()
    lis = list(set(lis))
    x = len(lis)
    if x==1 and m==n:
        print(x,1)
    else:
        print(x,0)



        
if __name__=="__main__":
    main()




































































0