I think i know the reason,there must be some extra characters at the end of the input.as i keep reading integers,i will never reach EOF.that's too bad,i kept getting runtime error during the contest
why this simple code get TLE?I just intend to read the input... Please help me,thanks in advance
#include <stdio.h> #include <string.h>
int main() { int n,m,r; int i,j,k; while(scanf("%d",&n)!=EOF){ for(i=0;i<n;i++) scanf("%d",&k); scanf("%d",&r); for(i=0;i<r;i++) scanf("%d%d",&j,&k ...