#1WA,C艹求助
查看原帖
#1WA,C艹求助
776306
FengYuXinMing楼主2023/7/3 10:21
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin >> n;
	if (n < 100) cout << "00";
	else if (100 <= n < 1000) cout << '0' << n/100;
	else if (1000 <= n <= 5000) cout << n/100;
	else if (5000 < n <= 30000) cout << n/1000+50;
	else if (30000 < n <= 70000) cout << (n/1000-30)/5+80;
	else cout << "89";
	cout << endl;
	return 0;
}
2023/7/3 10:21
加载中...