Hai everybody,
I got wa at 10331 Flyover construction.
Any hints or advice to avoid this .
Thanks in advance
10331 - The Flyover Construction
Moderator: Board moderators
10331- Wa
babor
Re: I am having real trouble with 10331 the Flyover construction
Presentation Error:::::::: Why PE
My output code is like,
Is there any problem .............
plz give some adv.
My output code is like,
Code: Select all
for(i=1; i<=m; i++){
if(count[i]==max){
printf("%d",i);
if(i<m) printf(" ");
}
}
printf("\n");
plz give some adv.
Re: I am having real trouble with 10331 the Flyover construction
Of course, there is. Just think that count[m-1] = max and count [m] < max.... Then a trailing space will be printed. Am I right? You can solve this problem easily...rhsumon wrote:Presentation Error:::::::: Why PE
My output code is like,Is there any problem .............Code: Select all
for(i=1; i<=m; i++){ if(count[i]==max){ printf("%d",i); if(i<m) printf(" "); } } printf("\n");
plz give some adv.
Code: Select all
int flag=0;
for(i=1; i<=m; i++){
if(count[i]==max){
if(flag++) printf(" ");
printf("%d",i);
}
}
printf("\n");
Ami ekhono shopno dekhi...
HomePage
HomePage
Re: I am having real trouble with 10331 the Flyover construction
Thnkx but some problem........
But is that false.......... if i reform my code like that..
Is there also print any trailing " "? I'm confused.............
Ok u r correct but i am confusing abt that
But is that false.......... if i reform my code like that..
Code: Select all
Actually i've understood..........
What a stupid am i!!!!!!!!!!!!!!!!!!!!!!!!! :x
Ok u r correct but i am confusing abt that