結果
問題 | No.112 ややこしい鶴亀算 |
ユーザー |
![]() |
提出日時 | 2022-02-03 00:02:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-11 09:38:52 |
合計ジャッジ時間 | 1,802 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
N=int(input()) A=list(map(int,input().split())) if len(set(A))==1: if A[0]//(N-1)==2: print(N,0) else: print(0,N) else: from collections import Counter C=Counter(A) CS=sorted(C,reverse=True) for x in CS: print(C[x],end=" ") print()