#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
main()
{
long i, j;
for (i = 0; i <= 10000; i++)
{
for (j = 10;; j *= 10)
if (i % j == i)break;
if ((i * i) % j == i) printf("%ld ", i);
}
}
标签:SECURE,CRT,NO,WARNINGS,自守数,main
From: https://www.cnblogs.com/258-333/p/17421684.html