結果

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

ソースコード

diff #

N = int(input())
ans = [int(i) for i in input().split()]
m = max(ans)
n = ans.count(m)
if n == N:
    if ans[0]//(N-1) == 2:
        print(n, N-n)
    else:
        print(N - n, n)
else:
    print(n, N - n)
0