2 条题解

  • 1
    @ 2025-2-22 20:58:27
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,b=1,c=1,d=1;
    	cin>>a;
    	while(c<=a)
    	{
    		b++;
    		c+=b;
    		d++;
    	}
    	cout<<d;
    	return 0;
    }
    

    信息

    ID
    72
    时间
    1000ms
    内存
    64MiB
    难度
    7
    标签
    递交数
    53
    已通过
    13
    上传者