結果

問題 No.118 門松列(2)
コンテスト
ユーザー pekempey
提出日時 2015-12-20 23:34:31
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
WA  
実行時間 -
コード長 236 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,546 ms
コンパイル使用メモリ 81,152 KB
実行使用メモリ 91,008 KB
最終ジャッジ日時 2026-04-06 07:00:07
合計ジャッジ時間 4,156 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n = input()
a = map(int, raw_input().split())
a.sort()

num = [0] * 101
for x in a:
	num[x] += 1

ans = 0

for i in xrange(101):
	for j in xrange(i + 1, 101):
		for k in xrange(j + 1, 101):
			ans += num[i] * num[j] * num[k]

print ans
0