mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
253 B
C++
16 lines
253 B
C++
|
#include <stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int i,t,k,a,b,n;
|
||
|
scanf("%d",&t);
|
||
|
while(t--)
|
||
|
{
|
||
|
scanf("%d%d%d",&n,&a,&b);
|
||
|
k=1;
|
||
|
for(i=0;i<n;i++)
|
||
|
k*=(b-i);
|
||
|
printf("%d\n",a*k);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|