QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#282418#7852. Mini-Tetris 3023zzmmkAC ✓0ms1652kbC99236b2023-12-11 23:14:162023-12-11 23:14:16

Judging History

你现在查看的是最新测评结果

  • [2023-12-11 23:14:16]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:1652kb
  • [2023-12-11 23:14:16]
  • 提交

answer

#include <stdio.h>
int main()
{
	int a,b,c;
	int sum;
	scanf("%d%d%d",&a,&b,&c);
	sum+=a*2;
	if (c!=0&&c!=1) {
		if (c%2==0) {
		sum+=(c/2)*3+b*2;
	} else {
		sum+=(c-1)/2*3+b*2;
	}
	} 
	
	printf("%d",sum);
	return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 1604kb

input:

2 2 2

output:

11

result:

ok single line: '11'

Test #2:

score: 0
Accepted
time: 0ms
memory: 1604kb

input:

1 1 1

output:

2

result:

ok single line: '2'

Test #3:

score: 0
Accepted
time: 0ms
memory: 1592kb

input:

0 0 0

output:

0

result:

ok single line: '0'

Test #4:

score: 0
Accepted
time: 0ms
memory: 1592kb

input:

0 0 1

output:

0

result:

ok single line: '0'

Test #5:

score: 0
Accepted
time: 0ms
memory: 1584kb

input:

0 2 2

output:

7

result:

ok single line: '7'

Test #6:

score: 0
Accepted
time: 0ms
memory: 1624kb

input:

0 2 3

output:

7

result:

ok single line: '7'

Test #7:

score: 0
Accepted
time: 0ms
memory: 1636kb

input:

0 2 4

output:

10

result:

ok single line: '10'

Test #8:

score: 0
Accepted
time: 0ms
memory: 1636kb

input:

20 20 20

output:

110

result:

ok single line: '110'

Test #9:

score: 0
Accepted
time: 0ms
memory: 1612kb

input:

20 20 19

output:

107

result:

ok single line: '107'

Test #10:

score: 0
Accepted
time: 0ms
memory: 1652kb

input:

20 19 20

output:

108

result:

ok single line: '108'

Test #11:

score: 0
Accepted
time: 0ms
memory: 1576kb

input:

20 19 19

output:

105

result:

ok single line: '105'

Test #12:

score: 0
Accepted
time: 0ms
memory: 1648kb

input:

19 20 20

output:

108

result:

ok single line: '108'

Test #13:

score: 0
Accepted
time: 0ms
memory: 1628kb

input:

19 20 19

output:

105

result:

ok single line: '105'

Test #14:

score: 0
Accepted
time: 0ms
memory: 1592kb

input:

19 19 20

output:

106

result:

ok single line: '106'

Test #15:

score: 0
Accepted
time: 0ms
memory: 1592kb

input:

0 0 2

output:

3

result:

ok single line: '3'

Test #16:

score: 0
Accepted
time: 0ms
memory: 1596kb

input:

19 19 19

output:

103

result:

ok single line: '103'

Test #17:

score: 0
Accepted
time: 0ms
memory: 1464kb

input:

50 50 50

output:

275

result:

ok single line: '275'

Test #18:

score: 0
Accepted
time: 0ms
memory: 1600kb

input:

50 50 49

output:

272

result:

ok single line: '272'

Test #19:

score: 0
Accepted
time: 0ms
memory: 1612kb

input:

50 49 50

output:

273

result:

ok single line: '273'

Test #20:

score: 0
Accepted
time: 0ms
memory: 1576kb

input:

50 49 49

output:

270

result:

ok single line: '270'

Test #21:

score: 0
Accepted
time: 0ms
memory: 1640kb

input:

49 50 50

output:

273

result:

ok single line: '273'

Test #22:

score: 0
Accepted
time: 0ms
memory: 1592kb

input:

49 50 49

output:

270

result:

ok single line: '270'

Test #23:

score: 0
Accepted
time: 0ms
memory: 1576kb

input:

49 49 50

output:

271

result:

ok single line: '271'

Test #24:

score: 0
Accepted
time: 0ms
memory: 1548kb

input:

49 49 49

output:

268

result:

ok single line: '268'

Test #25:

score: 0
Accepted
time: 0ms
memory: 1628kb

input:

0 0 50

output:

75

result:

ok single line: '75'

Test #26:

score: 0
Accepted
time: 0ms
memory: 1648kb

input:

0 0 3

output:

3

result:

ok single line: '3'

Test #27:

score: 0
Accepted
time: 0ms
memory: 1580kb

input:

0 1 50

output:

77

result:

ok single line: '77'

Test #28:

score: 0
Accepted
time: 0ms
memory: 1576kb

input:

0 2 50

output:

79

result:

ok single line: '79'

Test #29:

score: 0
Accepted
time: 0ms
memory: 1648kb

input:

0 50 0

output:

0

result:

ok single line: '0'

Test #30:

score: 0
Accepted
time: 0ms
memory: 1584kb

input:

0 50 1

output:

0

result:

ok single line: '0'

Test #31:

score: 0
Accepted
time: 0ms
memory: 1472kb

input:

0 50 2

output:

103

result:

ok single line: '103'

Test #32:

score: 0
Accepted
time: 0ms
memory: 1612kb

input:

0 50 3

output:

103

result:

ok single line: '103'

Test #33:

score: 0
Accepted
time: 0ms
memory: 1612kb

input:

0 0 4

output:

6

result:

ok single line: '6'

Test #34:

score: 0
Accepted
time: 0ms
memory: 1472kb

input:

0 1 1

output:

0

result:

ok single line: '0'

Test #35:

score: 0
Accepted
time: 0ms
memory: 1636kb

input:

0 1 2

output:

5

result:

ok single line: '5'

Test #36:

score: 0
Accepted
time: 0ms
memory: 1480kb

input:

0 1 3

output:

5

result:

ok single line: '5'

Test #37:

score: 0
Accepted
time: 0ms
memory: 1628kb

input:

0 1 4

output:

8

result:

ok single line: '8'

Test #38:

score: 0
Accepted
time: 0ms
memory: 1632kb

input:

0 2 1

output:

0

result:

ok single line: '0'