結果

問題 No.1692 Expectations
ユーザー ch1channnch1channn
提出日時 2022-12-25 22:55:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 166,016 KB
最終ジャッジ日時 2024-04-30 03:02:37
合計ジャッジ時間 2,612 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,840 KB
testcase_01 AC 36 ms
52,352 KB
testcase_02 AC 37 ms
51,968 KB
testcase_03 AC 36 ms
52,480 KB
testcase_04 AC 36 ms
52,352 KB
testcase_05 AC 37 ms
52,352 KB
testcase_06 AC 37 ms
52,352 KB
testcase_07 AC 37 ms
51,992 KB
testcase_08 AC 37 ms
52,224 KB
testcase_09 AC 36 ms
52,224 KB
testcase_10 AC 78 ms
96,640 KB
testcase_11 AC 78 ms
96,384 KB
testcase_12 AC 36 ms
52,032 KB
testcase_13 AC 37 ms
51,712 KB
testcase_14 AC 46 ms
66,176 KB
testcase_15 AC 111 ms
130,432 KB
testcase_16 AC 45 ms
66,944 KB
testcase_17 AC 76 ms
98,688 KB
testcase_18 AC 52 ms
74,112 KB
testcase_19 AC 120 ms
139,864 KB
testcase_20 AC 111 ms
149,760 KB
testcase_21 AC 129 ms
166,016 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 and n == m else 0)

0