Problem 11172

General topic about Valladolid Online Judge

Moderator: Board moderators

Post Reply
anandoham
New poster
Posts: 1
Joined: Wed Mar 16, 2016 7:26 am

Problem 11172

Post by anandoham »

https://uva.onlinejudge.org/external/111/11172.pdf

Can somebody explain why this is not working? It gives WA

#include <stdio.h>

int main()
{
long int a[20], b[20], i, l;

scanf("%d", &l);

if(l<15)
{
for(i=0; i<l; i++)
scanf("%d %d", &a, &b);

if(a > b)
printf(">\n");

if(a < b)
printf("<\n");

if(a == b)
printf("=\n");
}

return 0;

}
Post Reply

Return to “General”