結果
問題 | No.1904 Never giving up! |
ユーザー |
|
提出日時 | 2022-10-11 17:56:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-25 12:58:46 |
合計ジャッジ時間 | 1,180 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
from collections import Counterfrom math import factorialdef main():N = int(input())A = list(map(int, input().split()))counter_A = Counter(A)all_pattern_nums = factorial(N)for appear_num in counter_A.values():all_pattern_nums //= factorial(appear_num)print(all_pattern_nums)if __name__ == "__main__":main()