UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#211979#3815. 种树Alex9876100ms1200kbC++383b2024-10-13 09:33:512024-10-13 12:54:10

answer

#include<bits/stdc++.h>
int C(int a,int b)
{
	int res=1;
	for(int c=a;c>a-b;c-=1){res*=c;}
	for(int v=1;v<b+1;v+=1){res/=b;}
	return res;
}
int main()
{
    int a,b,c,t=0;
    std::cin>>a>>b>>c;
    int maxmium=c;
    if(c>ceil(1.0*a*b/2))
	{
		std::cout<<0;
		return 0;
	}
    for(int r=1;r<maxmium+1;r+=1){t+=C(ceil(a*b/2.0),r);}
    std::cout<<t;
	return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

2 2 1

output:

2

result:

wrong answer 1st numbers differ - expected: '4', found: '2'

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

2 3 2

output:

4

result:

wrong answer 1st numbers differ - expected: '8', found: '4'

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 1196kb

input:

4 4 2

output:

22

result:

wrong answer 1st numbers differ - expected: '96', found: '22'

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 1196kb

input:

4 4 5

output:

42

result:

wrong answer 1st numbers differ - expected: '304', found: '42'

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

3 4 3

output:

17

result:

wrong answer 1st numbers differ - expected: '84', found: '17'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 1196kb

input:

3 5 2

output:

22

result:

wrong answer 1st numbers differ - expected: '83', found: '22'

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 1196kb

input:

3 5 3

output:

34

result:

wrong answer 1st numbers differ - expected: '215', found: '34'

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 1196kb

input:

3 5 4

output:

40

result:

wrong answer 1st numbers differ - expected: '276', found: '40'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 1196kb

input:

3 5 5

output:

42

result:

wrong answer 1st numbers differ - expected: '174', found: '42'

Test #10:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

4 3 5

output:

18

result:

ok 1 number(s): "18"