看起来没啥问题,但测起来有很大问题
查看原帖
看起来没啥问题,但测起来有很大问题
1065612
runtianxiaozi楼主2024/8/9 21:33
#include <bits/stdc++.h>
using namespace std;
int sum;
void fun(int x, int y)
{
	if (x == 0 || y == 0)return; 
	sum += 90;
	fun(x - 1, y - 1); 
}
int main() {
	int x, y;
	cin >> x >> y;
	fun(x, y);
	cout << sum + x * 60 + y * 40;
	return 0;
}
2024/8/9 21:33
加载中...