Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
不可能呀In Reply To:都有Z和z的 Posted by:TN at 2005-02-27 17:09:33 我的程序这么读的,后面的注释加上就是TLE,不加就是wa...... x3=-1;x2=-1; for (i=0;i<5;i++) for (j=0;j<5;j++) { fin>>a[i][j]; if (a[i][j]=='M') { x1=i*5+j; } if (a[i][j]=='Z') { x2=i*5+j; } if (a[i][j]=='z') { x3=i*5+j; } } // if ((x3==-1)||(x2==-1)) // for (i=0;i<100000;i++) // for (j=0;j<100000;j++); Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator