Problems Description
<p class="p0" style="text-indent:21.0000pt;"> 人生三大幻觉是手机在震动、有人叫你、还有<span>Ta</span><span>喜欢你。可是这Page 三条幻觉偏偏就真正的发生在了坤哥身上,坤哥很是高兴。但是</span><span>......</span><span>,那妹子对坤哥说了“我脖子上戴的这串项链有</span><span>n</span><span>items珠子,可以用</span><span>c</span><span>种颜色对珠子涂染,你能告诉我能形成多少种不同的项链吗?”这下可难为坤哥,没想到把items妹子还这么难,你能帮助坤哥把妹Success吗?</span> </p>
Input格式
<p class="p0" style="text-indent:21.0000pt;"> 包含多组测试数据,每组测试数据包含两items整数<span>n</span><span>和</span><span>c.(1<=n,c<=10)</span> </p>
Output格式
<p class="p0" style="text-indent:21.0000pt;"> 输出能够形成多少种不同的项链。 </p>
Sample
Sample Input 1
1 1
2 1
2 2
5 1
2 5
2 6
6 2
Sample Output 1
1
2
3
5
8
13
21
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪