結果

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

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
m=min(A)
B=[x-m for x in A]
if m==0:
    if A[0]//(N-1)==4:print(0,N)
    else:print(N,0)
else:
    kame=sum(B)//2
    print(N-kame, kame)
0