UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#170344#1160. 成绩luojianwei22161000ms1332kbC++166b2023-04-08 20:53:002023-04-08 20:53:01

answer

#include <iostream>
using namespace std;

int main() {
	double a, b, c, yx;
	cin >> a >> b >> c;
	yx = a * 0.2 + b * 0.3 + c * 0.5;
	cout << yx;
	return 0;
}

Details

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

Test #1:

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

input:

100 100 30

output:

65

result:

ok single line: '65'

Test #2:

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

input:

0 20 80

output:

46

result:

ok single line: '46'

Test #3:

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

input:

10 100 10

output:

37

result:

ok single line: '37'

Test #4:

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

input:

100 100 10

output:

55

result:

ok single line: '55'

Test #5:

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

input:

100 100 40

output:

70

result:

ok single line: '70'

Test #6:

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

input:

50 70 50

output:

56

result:

ok single line: '56'

Test #7:

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

input:

60 70 50

output:

58

result:

ok single line: '58'

Test #8:

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

input:

0 0 80

output:

40

result:

ok single line: '40'

Test #9:

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

input:

0 0 100

output:

50

result:

ok single line: '50'

Test #10:

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

input:

0 0 20

output:

10

result:

ok single line: '10'