题解 | 神秘石像的镜像序列
神秘石像的镜像序列
https://www.nowcoder.com/practice/fa34eea974234610b6d3d81790cb2949
#include <stdio.h>
int main()
{
long long int n[100];
int i=1,j=1;
for(;;i++)
{
scanf("%lld",&n[i]);
if(n[i]==0)
{
j=i-1;
break;
}
}
for(;j;j--)
{
printf("%lld ",n[j]);
}
return 0;
}
查看2道真题和解析
深信服公司福利 804人发布