ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1617. Flat Spots

r2d2 Danila, I need help // Problem 1617. Flat Spots 23 Oct 2011 16:37
Can somebody help me? I've got WA on the test №3. I've got no idea what's wrong. Please, help me.
public void solve()throws Exception{
        int n = nextInt();
        int [] a = new int[101];
        int c =0,b;
        for (int i=0;i<n;i++){
            b = nextInt();
            a[b-600]++;
        }
        for (int i=0;i<101;i++){
            c+=a[i]>>1;
        }
        out.println(c>>2);
    }