結果

問題 No.73 helloworld
コンテスト
ユーザー bellangeldindon
提出日時 2019-04-26 11:20:32
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
WA  
実行時間 -
コード長 599 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 81,536 KB
実行使用メモリ 81,584 KB
最終ジャッジ日時 2026-07-18 19:01:39
合計ジャッジ時間 2,046 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def combination(n, k):
	x = 1
	for i in range(0, k):
		x = x * (n-i)
	for i in range(0, k):
		x = x / (k-i)
	return x

lst = []
for i in range(0, 26):
	lst.append(int(raw_input()))
countlist = []
countlist.append(lst[3])
countlist.append(lst[4])
countlist.append(lst[7])
countlist.append(lst[11]/3)
countlist.append(lst[14]/2)
countlist.append(lst[17])
countlist.append(lst[22])
ans = 0
for i in range(0, 7):
	if lst[i] == 0:
		ans = 0
		break
	if ans == 0:
		ans = 1
	if i == 3: ans = ans * combination(lst[3], 3)
	elif i == 4: ans = ans * combination(lst[4], 2)
	else: ans = ans * lst[i]
print ans
0