結果

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

ソースコード

diff #

# yukicoder No.112 ややこしい鶴亀算 2020/02/13

n=int(input())
a=list(map(int,input().split()))

ct=sum(a)//(n-1)
c,t=0,0
for e in a:
    if ct-e==2:
        c+=1
    else:
        t+=1
print(*[c,t])
0