結果
問題 |
No.112 ややこしい鶴亀算
|
ユーザー |
|
提出日時 | 2021-07-02 09:54:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-28 19:57:24 |
合計ジャッジ時間 | 1,460 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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) exit() x = list(set(A)) x.sort() print(A.count(x[1]), A.count(x[0]))