hi,
   if anybody can help me with the problem on proper shuffle i am seeing the 
solutions submitted  on the questions and found an interesting solution can  
anybody explain me the code 

#include <cstdio>
#include <cstdlib>
#include <cstring>

int main() {
        freopen("input.in","r",stdin);
        freopen("out.txt","w",stdout);
        int T, cas;
        scanf("%d", &T);
        
        for (cas = 1; cas <= T; cas++) {
                int n, cc = 0, x;
                scanf("%d", &n);
                for (int i = 0; i < n; i++) {
                        scanf("%d", &x);
                        if (x > i + 5)
                                cc += 1;
                }
                if (cc > 508)
                        printf("Case #%d: BAD\n", cas);
                else
                        printf("Case #%d: GOOD\n", cas);
        }
}

thanks 
Vijendra

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/ef4fd501-7184-4988-87a5-2ce571b59713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to