結果

問題 No.112 ややこしい鶴亀算
ユーザー jamad
提出日時 2017-07-30 05:06:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 130 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-10 21:27:17
合計ジャッジ時間 1,757 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
n,x,c=min(A),max(A),A.count
print(*((c(x), c(n)),((N,0),(0,N))[n//(N-1)>2])[n==x])
0