3e5 之神
查看原帖
3e5 之神
1125291
ZMQ_Ink6556楼主2024/12/18 09:30

代码:

#include<bits/stdc++.h>
using namespace std;
int n;
int main()
{
	ios::sync_with_stdio(0);
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cin >> n;
	if(n >= 100000)
	{
	    return 5;
	}
	if(n >= 10000)
	{
	    return 4;
	}
	if(n >= 1000)
	{
	    return 3;
	}
	if(n >= 100)
	{
	    return 2;
	}
	if(n >= 10)
	{
	    return 1;
	}
	return 0;
}

评测记录:pic

把鼠标悬停在每个框上看 nn 的大小,不用我多说了吧。

就没有到达 return 5; 的。疑似 Windows 的 rand() 范围。

建议加强数据。

Aya 出的题,那就不加强了吧。

2024/12/18 09:30
加载中...