結果
問題 |
No.1692 Expectations
|
ユーザー |
|
提出日時 | 2021-10-01 21:26:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 108 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 134,912 KB |
最終ジャッジ日時 | 2024-07-19 10:30:47 |
合計ジャッジ時間 | 2,320 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
import sys input = lambda : sys.stdin.readline().rstrip() write = lambda x: sys.stdout.write(x+"\n") debug = lambda x: sys.stderr.write(x+"\n") writef = lambda x: print("{:.12f}".format(x)) n,m = list(map(int, input().split())) a = list(map(int, input().split())) s = set(a) mm = 0 MM = len(s) count = [0]*m if all((a[0]==a[i] for i in range(n))) and n==m: mm = 1 print(MM, mm)