标签:turn amp mic 幸运 img == image 图片 ima
#include<stdio.h>
int main()
{
int x;
scanf("%d", &x);
while (x--)
{
int y = 0;
int sum1 = 0;
int sum2 = 0;
scanf("%d", &y);
for(int i = 3;i>0;i--)
{
sum1 += y %10;
y = y / 10;
}
for (int i = 3; i > 0; i--)
{
sum2 += y %10;
y = y / 10;
}
if (sum1 == sum2)
printf("You are lucky!\n");
else
printf("Wish you good luck.\n");
}
return 0;
}
标签:turn amp mic 幸运 img == image 图片 ima
原文地址:https://blog.51cto.com/14737345/2479863