UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#212059#3815. 种树sycwhx100ms1196kbC++1.1kb2024-10-13 10:43:232024-10-13 12:55:16

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,m,k,a[20][10];
int main()
{
    a[1][5]=0,a[2][5]=0,a[3][5]=0,a[4][5]=0,a[5][5]=1,a[6][5]=6,a[7][5]=21,a[8][5]=56,a[9][5]=126,a[10][5]=252,a[11][5]=462,a[12][5]=792,a[13][5]=1287,a[14][5]=2002,a[15][5]=3003,a[16][5]=4368;
    a[1][4]=0,a[2][4]=0,a[3][4]=0,a[4][4]=1,a[5][4]=5,a[6][4]=15,a[7][4]=35,a[8][4]=70,a[9][4]=126,a[10][4]=210,a[11][4]=330,a[12][4]=495,a[13][4]=715,a[14][4]=1001,a[15][4]=1365,a[16][4]=1820;
    a[1][3]=0,a[2][3]=0,a[3][3]=1,a[4][3]=4,a[5][3]=10,a[6][3]=20,a[7][3]=35,a[8][3]=56,a[9][3]=84,a[10][3]=120,a[11][3]=165,a[12][3]=220,a[13][3]=286,a[14][3]=364,a[15][3]=455,a[16][3]=560;
    a[1][2]=0,a[2][2]=1,a[3][2]=3,a[4][2]=6,a[5][2]=10,a[6][2]=15,a[7][2]=21,a[8][2]=28,a[9][2]=36,a[10][2]=45,a[11][2]=55,a[12][2]=66,a[13][2]=78,a[14][2]=91,a[15][2]=105,a[16][2]=120;
    a[1][1]=1,a[2][1]=2,a[3][1]=3,a[4][1]=4,a[5][1]=5,a[6][1]=6,a[7][1]=7,a[8][1]=8,a[9][1]=9,a[10][1]=10,a[11][1]=11,a[12][1]=12,a[13][1]=13,a[14][1]=14,a[15][1]=15,a[16][1]=16;
    cin>>n>>m>>k;
    cout<<a[n*m][k];
	return 0;
}

详细

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

Test #1:

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

input:

2 2 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

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

input:

2 3 2

output:

15

result:

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

Test #3:

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

input:

4 4 2

output:

120

result:

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

Test #4:

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

input:

4 4 5

output:

4368

result:

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

Test #5:

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

input:

3 4 3

output:

220

result:

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

Test #6:

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

input:

3 5 2

output:

105

result:

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

Test #7:

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

input:

3 5 3

output:

455

result:

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

Test #8:

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

input:

3 5 4

output:

1365

result:

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

Test #9:

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

input:

3 5 5

output:

3003

result:

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

Test #10:

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

input:

4 3 5

output:

792

result:

wrong answer 1st numbers differ - expected: '18', found: '792'