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 |
Why Presentation Error??? How to fix...Here is output part of my program: /* something */ string sv[101][101]; int main() { init(); FOR(i,1,101) FOR(j,1,101) sv[i][j]=get(i,j,7); // precalculate answers with length 7 bool flag=false; while(1){ int n,b,x; scanf(" %d",&b); if (b==0) break; scanf(" %d %d",&x,&n); if(flag) printf("\n"); flag=true; printf("%s",sv[b][x].c_str()+(7-n)); // trim long answers to n digits } return 0; } Please help! My algo is correct, but output... I tried with flag and without, but still PE ^( Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator