30% de erro

Eduardo Tomacheski (IFSUL Charqueadas) asked 2 years ago


int main (){ int tm1,tm2,t1,t2,a , b ,c,i; while(scanf("%d%d%d",&tm1,&tm2,&a)!=EOF){ t1=tm1+tm2; for(i=0;i<a;i++){ scanf("%d%d",&b,&c); t2=c+b; if(t2>t1){ printf("Nao\n"); }else{ printf("Sim\n"); } } }

return 0;

} alguem sabe o problema?

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

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