結果
問題 | No.73 helloworld |
ユーザー | kutsutama |
提出日時 | 2018-12-18 02:00:28 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 16 ms / 5,000 ms |
コード長 | 395 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 10,636 KB |
実行使用メモリ | 8,004 KB |
最終ジャッジ日時 | 2023-09-13 21:38:47 |
合計ジャッジ時間 | 1,004 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,860 KB |
testcase_01 | AC | 15 ms
7,848 KB |
testcase_02 | AC | 16 ms
7,804 KB |
testcase_03 | AC | 15 ms
7,812 KB |
testcase_04 | AC | 16 ms
7,808 KB |
testcase_05 | AC | 15 ms
8,004 KB |
testcase_06 | AC | 15 ms
7,844 KB |
testcase_07 | AC | 16 ms
7,804 KB |
testcase_08 | AC | 15 ms
7,948 KB |
testcase_09 | AC | 16 ms
7,852 KB |
testcase_10 | AC | 16 ms
7,796 KB |
testcase_11 | AC | 15 ms
7,812 KB |
testcase_12 | AC | 16 ms
7,888 KB |
testcase_13 | AC | 15 ms
7,872 KB |
ソースコード
c = [0] * 27 for i in range(1, 27): c[i] = int(input()) res = c[4] * c[5] * c[8] * (c[15] // 2) * (c[15] - c[15] // 2) * c[18] * c[23] if c[12] >= 3: comb_max = 0 for l_world in range(1, c[12] - 2 + 1): l_hello = c[12] - l_world comb = (l_hello * (l_hello - 1) // 2) * l_world comb_max = max(comb, comb_max) res *= comb_max else: res = 0 print(res)