C语言 帮我检查下代码 很奇怪··主要功能是 用来算 排列组合数InputIn the first line , there is a integer T indicates the number of test cases.Then T cases follows in the T lines.Each case contains a character 'A' or 'C', two in

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/06 01:04:26
C语言 帮我检查下代码 很奇怪··主要功能是 用来算 排列组合数InputIn the first line , there is a integer T indicates the number of test cases.Then T cases follows in the T lines.Each case contains a character 'A' or 'C', two in
xR]kA+@M$$PS|RBvvRh(U-~PD`Z|i4ߒMw'T-.{gι{rX>; Lt~o4 wFMtzrz2 7;m/~<vW8^aK-qP.RA $!xx\U& Ť󖿂(D2Y#l ͠- , 5WIABb\j9"JW/A#ҿ!%xe_ Ip ~r)K2G75ql\3૓0/7o-/'I NR+3YOH5*%>)`w5kVyI>G0F0Yצ:UPr;Oi!!nAN@phq/ڟ5 3Ώ̡@Qwxƾ@~.¸&FW͖<<xw=+\.ɐjrB S

C语言 帮我检查下代码 很奇怪··主要功能是 用来算 排列组合数InputIn the first line , there is a integer T indicates the number of test cases.Then T cases follows in the T lines.Each case contains a character 'A' or 'C', two in
C语言 帮我检查下代码 很奇怪··
主要功能是 用来算 排列组合数
Input
In the first line , there is a integer T indicates the number of test cases.
Then T cases follows in the T lines.
Each case contains a character 'A' or 'C', two integers represent n and m. (1

C语言 帮我检查下代码 很奇怪··主要功能是 用来算 排列组合数InputIn the first line , there is a integer T indicates the number of test cases.Then T cases follows in the T lines.Each case contains a character 'A' or 'C', two in
int main()
{
int t,m,n,tmp;
long long *r = NULL;
char ch;
scanf("%d",&t);
tmp = t;
r = malloc(t * sizeof(long long));
if(r == NULL)
return 0;
do
{
scanf("%c%d%d%",&ch,&n,&m);
if(ch=='A') r[tmp - t - 1]=A(n,m);
if(ch=='C') r[tmp - t - 1]=C(n,m);
}while(t--);
t = tmp;
while(t--)
printf("%d\n", r[tmp - t - 1]);
return 0;
}
刚没看清题目 重新修改了下