#include
int main()
{
int n;
char xing;
scanf("%d %c",&n,&xing);
int num=1,i=1;
while(1) {
num = num + 2 * (i + 2); //一开始就超出,不改变i
if(num > n) break;
i += 2;
}
int MAX=i;
for(int k=0 ; kPAT:1027. 打印沙漏(20) AC
时间: 2024-10-05 05:00:34