結果

問題 No.112 ややこしい鶴亀算
コンテスト
ユーザー a_ten
提出日時 2016-04-04 22:52:17
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 51 ms / 5,000 ms
+ 944µs
コード長 262 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 81,116 KB
実行使用メモリ 81,024 KB
最終ジャッジ日時 2026-07-18 04:51:01
合計ジャッジ時間 2,963 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#coding:utf-8

N=input()
foot=map(int,raw_input().split())

turu=0
kame=0
for i in range(N):
	if len(set(foot))==1:
		ans=foot[i]/(N-1)
		if ans==2:
			turu+=1
		else:
			kame+=1
	else:
		if foot[i]==max(set(foot)):
			turu+=1
		else:
			kame+=1

print turu,kame
0