ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1427. SMS

Ionel Corneliu Gog Is test 7 valid? [12] // Problem 1427. SMS 11 Feb 2006 14:47
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').
Dmitry 'Diman_YES' Kovalioff No, it has (-) [11] // Problem 1427. SMS 11 Feb 2006 14:50
Ionel Corneliu Gog Re: No, it has (-) [10] // Problem 1427. SMS 11 Feb 2006 15:08
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?
Dmitry 'Diman_YES' Kovalioff About test generation (-) // Problem 1427. SMS 11 Feb 2006 15:14
All the tests:
1) were typed in Windows Notepad manually
or
2) were generated by Delphi program via Writeln() procedure
Fly [Yaroslavl_SU] Re: No, it has (-) [8] // Problem 1427. SMS 11 Feb 2006 15:38
It's true. Input is BAD!!!
pavlodar_lyceum8_5 No, it has (-) // Problem 1427. SMS 11 Feb 2006 15:40
Dmitry 'Diman_YES' Kovalioff Input is correct. It is the problem of C++ if the code works wrong (-) [6] // Problem 1427. SMS 11 Feb 2006 15:41
Shangri-La2005: Zeyuan Zhu, Jinsong Huang and Yuanming Yu i know it's a tricky case. but i got stuck on case18. i don't know why. [1] // Problem 1427. SMS 11 Feb 2006 15:54
Is "scanf( "\n" );" == "gets( line );"???
Why not?
I've not very much exp. in C, but see this bug first time. Maybe, it would be better to read by streams?
Safe Bird it is NOT a bug, but a TRICKY case // Problem 1427. SMS 12 Feb 2006 14:41
Safe Bird completely not. // Problem 1427. SMS 12 Feb 2006 14:41