返回小组 开始 2024-12-11 15:45:00

结课测试

结束 2024-12-11 17:45:00
Contest is over.
当前 2025-01-18 19:06:53

1

include <bits/stdc++.h>

using namespace std;

int main() {

double x, y, n, a, b;
scanf("%lf%lf%lf", &x, &y, &n);
a = x / 2 * n + 30;
b = y * n;
if (a >= b) {
	cout << "0 " << b;

// printf("0 %lf", a);

} else {
	cout << "1 " << a;

// printf("1 %lf", b );

}
return 0;

}


12345G6  •  1个月前

比赛已结束。