| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:请问判断它一个数的成立有什么好的方法吗???In Reply To:请问判断它一个数的成立有什么好的方法吗??? Posted by:y05dzz at 2006-08-23 15:44:43 int repeat(long x)
{
char vis[10];
memset(vis,0,10);
while (x>0)
{
if (vis[x % 10]) return 1;
vis[x % 10] = 1;
x= x / 10;
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator