結果
| 問題 | No.1692 Expectations |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-01 21:26:41 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 107 ms / 2,000 ms |
| + 191µs | |
| コード長 | 384 bytes |
| 記録 | |
| コンパイル時間 | 2,722 ms |
| コンパイル使用メモリ | 95,464 KB |
| 実行使用メモリ | 146,176 KB |
| 最終ジャッジ日時 | 2026-08-18 11:27:22 |
| 合計ジャッジ時間 | 3,819 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)