CF630G.Challenge Pennants
普及/提高-
通过率:0%
时间限制:0.50s
内存限制:64MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Because of budget cuts one IT company established new non-financial reward system instead of bonuses.
Two kinds of actions are rewarded: fixing critical bugs and suggesting new interesting features. A man who fixed a critical bug gets "I fixed a critical bug" pennant on his table. A man who suggested a new interesting feature gets "I suggested a new feature" pennant on his table.
Because of the limited budget of the new reward system only 5 "I fixed a critical bug" pennants and 3 "I suggested a new feature" pennants were bought.
In order to use these pennants for a long time they were made challenge ones. When a man fixes a new critical bug one of the earlier awarded "I fixed a critical bug" pennants is passed on to his table. When a man suggests a new interesting feature one of the earlier awarded "I suggested a new feature" pennants is passed on to his table.
One man can have several pennants of one type and of course he can have pennants of both types on his table. There are n tables in the IT company. Find the number of ways to place the pennants on these tables given that each pennant is situated on one of the tables and each table is big enough to contain any number of pennants.
由于预算削减,一家IT公司建立了一套新的非金钱奖励制度,以取代奖金。
有两种行为会受到奖励:修复关键漏洞和提出新颖有趣的功能。成功修复一个关键漏洞的员工,其工位上会悬挂一面“I fixed a critical bug”(我修复了一个关键漏洞)的旗帜;提出一个新颖有趣功能的员工,其工位上则会悬挂一面“I suggested a new feature”(我提出了一项新功能)的旗帜。
由于该新奖励制度的预算有限,公司仅采购了 5 面“I fixed a critical bug”旗帜和 3 面“I suggested a new feature”旗帜。
为使这些旗帜能长期使用,它们被设计成“传递式”旗帜:当某员工修复了一个新的关键漏洞时,一面此前已授予他人的“I fixed a critical bug”旗帜将被转交至该员工的工位;当某员工提出了一项新的有趣功能时,一面此前已授予他人的“I suggested a new feature”旗帜将被转交至该员工的工位。
一名员工的工位上可以同时拥有多个同类型旗帜,当然也可以同时拥有两种类型的旗帜。该公司共有 n 个工位。在每面旗帜必须置于某个工位、且每个工位容量足够大(可容纳任意数量旗帜)的前提下,求将这些旗帜分配到各工位上的方案总数。
输入格式
The only line of the input contains one integer n (1 ≤ n ≤ 500) — the number of tables in the IT company.
输入仅包含一行,其中有一个整数 n(1 ≤ n ≤ 500)—— 表示 IT 公司中桌子的数量。
输出格式
Output one integer — the amount of ways to place the pennants on n tables.
输出一个整数——在 n 张桌子上放置旗帜的方案数。
输入输出样例
输入#1
2
输出#1
24
输入解题思路,AI测评打分。不知道怎么写?