結果
| 問題 | No.1904 Never giving up! |
| コンテスト | |
| ユーザー |
prussian_coder
|
| 提出日時 | 2022-04-20 22:41:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 509 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 53,632 KB |
| 最終ジャッジ日時 | 2024-06-12 00:50:07 |
| 合計ジャッジ時間 | 1,909 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
N=int(input()) fact = [1]*21 for i in range(20): fact[i+1]=fact[i]*(i+1) ans=fact[N] from collections import Counter C=Counter([int(x) for x in input().split()]) for c in C: ans//=fact[C[c]] print(ans)
prussian_coder