你要不要自己试试。就运行个样例都不行吗。
by irris @ 2022-08-21 19:49:50
把每一个case后面的单引号去掉
by _Remake_ @ 2022-08-21 19:50:52
@[AlgorithmerSnow](/user/419487) \
啊对对对,样例也过不了~~~(qaq)~~~
by Jianglichan @ 2022-08-21 19:53:27
@[_Remake_](/user/576702) \
啊我找到问题了,谢谢您的指点\
膜拜大佬
by Jianglichan @ 2022-08-21 19:57:13
此帖终
by Jianglichan @ 2022-08-21 19:58:35
的反义词
by I_am_a_sad_bee_ha_ha @ 2022-08-25 16:17:55
@[Jianglichan](/user/713352)
```c
#include <iostream>
using namespace std;
int main()
{
int n,x=0;
cin >> n;
for(int i = 1;i <= n;i++)
{
for(int j = 1;j <= n;j++)
{
x++;
if(x / 10 == 0)
{
cout << "0" << x;
}
else
{
cout << x;
}
}
cout << endl;
}
x=0;
cout << endl;
for(int i = 1;i <= n;i++)
{
for(int j = 1;j <= n-i;j++)
{
cout << " ";
}
for(int j = 1;j <= i;j++)
{
x++;
if(x / 10 == 0)
{
cout << "0" << x;
}
else
{
cout << x;
}
}
cout << endl;
}
return 0;
}
```
不会可以这样用循环打出来
by baibaobao666 @ 2023-02-01 18:50:56