|
|
back to boardDiscussion of Problem 1427. SMSIs test 7 valid? Please check test 7. I submitted 8 times and I can pass it. I read with gets,fgets.. I think it doesn't have EOLN('\n'). Re: No, it has (-) That's crappy. If you read like this: scanf("%d%d\n",&n,&m)... it doesn't work and if you read like this scanf("%d%d",&n,&m);gets(line);.. is working.. Can explain me why is this difference? About test generation (-) All the tests: 1) were typed in Windows Notepad manually or 2) were generated by Delphi program via Writeln() procedure Re: No, it has (-) It's true. Input is BAD!!! Input is correct. It is the problem of C++ if the code works wrong (-) i know it's a tricky case. but i got stuck on case18. i don't know why. Re: Input is correct. It is the problem of C++ if the code works wrong (-) Is "scanf( "\n" );" == "gets( line );"??? Why not? Re: Input is correct. It is the problem of C++ if the code works wrong (-) I've not very much exp. in C, but see this bug first time. Maybe, it would be better to read by streams? it is NOT a bug, but a TRICKY case what is more, if i remove"if (feof(Fin)) break;" i will get TLE on 17!! i think case17 must be wrong... |
|
|