結果

問題 No.1692 Expectations
ユーザー ch1channnch1channn
提出日時 2022-12-25 22:53:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 176,512 KB
最終ジャッジ日時 2024-04-30 02:59:26
合計ジャッジ時間 2,661 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 40 ms
51,840 KB
testcase_02 AC 40 ms
52,096 KB
testcase_03 AC 41 ms
52,096 KB
testcase_04 WA -
testcase_05 AC 41 ms
52,096 KB
testcase_06 AC 41 ms
52,224 KB
testcase_07 AC 41 ms
51,584 KB
testcase_08 AC 41 ms
51,968 KB
testcase_09 AC 41 ms
51,840 KB
testcase_10 AC 87 ms
96,256 KB
testcase_11 AC 88 ms
95,872 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 138 ms
147,584 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 152 ms
142,336 KB
testcase_20 AC 151 ms
176,512 KB
testcase_21 AC 169 ms
168,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
	
n,m = map(int,input().split())
a = list(map(int,input().split()))
print(len(set(a)),1 if len(set(a))==1 or m-len(set(a)) >= n else 0)

0