結果

問題 No.73 helloworld
ユーザー bellangeldindonbellangeldindon
提出日時 2019-04-26 11:24:51
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 623 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-03 04:15:26
合計ジャッジ時間 1,331 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 11 ms
6,940 KB
testcase_02 WA -
testcase_03 AC 11 ms
6,940 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 11 ms
6,940 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 11 ms
6,940 KB
testcase_13 AC 11 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 countlist[i] == 0:
		ans = 0
		break
	if ans == 0:
		ans = 1
	if i == 3: ans = ans * combination(countlist[3], 3)
	elif i == 4: ans = ans * combination(countlist[4], 2)
	else: ans = ans * countlist[i]
print ans
0