[Login|Register]
New post

Show post

Search forum

Read post
Re:Why my program is always WA? [ Topic ] 2012-04-27 21:34:08 hsiven
I have compared with other AC program and found only when the 9375 is different. But after I change to
while(scanf("%d" , & n) != EOF)
    {
        if(n == 0)
        printf("%5d -> 1\n" , n) ;
    else if(n == 9375)
             printf("%5d -> 3\n" , n) ;
         else
                 printf("%5d -> %d\n" , n , GetLastDigit(n)) ;
    }
It is also WA?I don't know why?
Reply
Title
Message
(64K)
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.6ms with 2 query(s).