結果

問題 No.73 helloworld
ユーザー mkawa2mkawa2
提出日時 2019-12-21 09:38:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 604 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 10,824 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-09-25 23:13:25
合計ジャッジ時間 1,384 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,964 KB
testcase_01 AC 15 ms
7,900 KB
testcase_02 AC 16 ms
7,764 KB
testcase_03 AC 18 ms
7,808 KB
testcase_04 AC 15 ms
7,760 KB
testcase_05 AC 15 ms
7,856 KB
testcase_06 AC 16 ms
7,788 KB
testcase_07 AC 16 ms
7,860 KB
testcase_08 AC 16 ms
7,860 KB
testcase_09 AC 16 ms
7,884 KB
testcase_10 AC 15 ms
7,832 KB
testcase_11 AC 15 ms
7,836 KB
testcase_12 AC 16 ms
7,840 KB
testcase_13 AC 15 ms
7,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    a = [int(input()) for _ in range(26)]
    a11 = a[11]
    if a11 > 2:
        pl = max(n * (n - 1) * (a11 - n) // 2 for n in range(1, a11))
    else:
        pl = 0
    a14 = a[14]
    po = (a14 // 2) * (a14 - a14 // 2)
    ans = a[3] * a[4] * a[7] * a[17] * a[22] * pl * po
    print(ans)

main()
0