結果

問題 No.112 ややこしい鶴亀算
ユーザー ktshun
提出日時 2015-05-29 17:27:19
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 293 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 10:59:51
合計ジャッジ時間 984 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-

if __name__ == "__main__":
	n = input()
	a = map(int,raw_input().split())
	num = list(set(a))
	num.sort()
	if len(num) == 1:
		if num[0] / (n-1) == 4:
			print "%d %d" % (0,n)

		else:
			print "%d %d" % (n,0)
	else:
		print "%d %d" % (a.count(num[1]),a.count(num[0])) 
0