結果
問題 | No.73 helloworld |
ユーザー |
![]() |
提出日時 | 2024-09-16 20:08:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 555 bytes |
コンパイル時間 | 402 ms |
コンパイル使用メモリ | 82,228 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-09-16 20:09:00 |
合計ジャッジ時間 | 1,759 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
from math import combC = []dic = {3: 1, 4: 1, 7: 1, 11: 3, 14: 2, 17: 1, 22: 1}ans = 1for i in range(26):x = int(input())if i in dic:if x < dic[i]:print(0)exit()if i == 11:t = 1for k in range(x - 2):t = max(t, comb(k + 2, 2) * (x - k - 2))ans *= telif i == 14:t = 1for k in range(x - 1):t = max(t, (k + 1) * (x - k - 1))ans *= telse:ans *= xprint(ans)