#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char str[15]={'v','x','v','x','v','x','v','x','v','x','v','x','v','v','x'};
int a=777;
for(int i=0;i<15;i++)
{
if(str[i]=='v')
{a=a*2;}
else if(a==0)
{
break;
}
else
{a=a-555;}
}
printf("%d",a);
return 0;
}
蓝桥杯真题刷题14.有奖猜谜
于 2024-02-10 23:49:25 首次发布