TOPIC

5% Wrong Answer???

Abrar asked 5 months ago

include

int main() { long long int a,d,b=2015,n,i;

scanf("%lld",&n);
for(i=1;i<=n;i++)
{
    scanf("%lld",&a);
    if(a>b)
        d=a-b;
    else if(a<b)
        d=b-a;
     else d=0;

    if(d>=b || d==0)
        printf("%lld A.C.\n",d+1);
    else
        printf("%lld D.C.\n",d);
}
return 0;

}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.