結果

問題 No.112 ややこしい鶴亀算
ユーザー tookunn_1213
提出日時 2015-05-30 20:28:51
言語 Python2
(2.7.18)
結果
AC  
実行時間 9 ms / 5,000 ms
コード長 213 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-07-06 12:47:05
合計ジャッジ時間 914 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
a = map(int,raw_input().split())
maxValue,minValue = max(a),min(a)
if maxValue == minValue:
	if a[0]/(N-1) >= 4:
		print 0,N
	else:
		print N,0
else:
	print a.count(maxValue),a.count(minValue)
0