結果

問題 No.1904 Never giving up!
ユーザー googol_S0googol_S0
提出日時 2022-04-15 21:23:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 87,324 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-08-26 07:27:15
合計ジャッジ時間 1,903 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,412 KB
testcase_01 AC 68 ms
71,168 KB
testcase_02 AC 65 ms
71,460 KB
testcase_03 AC 67 ms
71,328 KB
testcase_04 AC 66 ms
71,120 KB
testcase_05 AC 67 ms
71,464 KB
testcase_06 AC 66 ms
71,288 KB
testcase_07 AC 67 ms
71,156 KB
testcase_08 AC 67 ms
71,260 KB
testcase_09 AC 66 ms
70,968 KB
testcase_10 AC 67 ms
71,108 KB
testcase_11 AC 67 ms
71,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
ANS=1
B=sorted(A)
C=1
X=1
for i in range(1,N):
  if B[i-1]==B[i]:
    C+=1
    X*=C
  else:
    C=1
  ANS*=(i+1)
print(ANS//X)
0