#include <stdio.h>
#include<math.h>
int main()
{
int flag = 0;
for (int i = 1; i <= 9; i++)//前两位车牌
{
if (flag) break;
for (int j = 0; j <= 9; j++) //后两位车牌
{
if (flag)break;
if (i != j)
{
int m = i * 1000 + i * 100 + j * 10 + j;
for (int k = 31; k <= 99; k++)
{
if (k * k == m)
{
printf("%d", m);
flag = 1;
break;
}
}
}
}
}
return 0;
}
标签:交通肇事,int,flag,include,main
From: https://www.cnblogs.com/258-333/p/17324243.html