結果

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

ソースコード

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