Very good method is using gets method to read whole line input not scanf(%s\n",st).
Then you remove preceded and additional spaces.
Search found 13 matches
- Thu Feb 10, 2005 4:02 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 40962
- Wed Feb 09, 2005 5:03 pm
- Forum: Off topic (General chit-chat)
- Topic: What happened to acm.timus.ru
- Replies: 5
- Views: 3529
WELCOME BACK http://ACM.TIMUS.RU !
- Mon Feb 07, 2005 10:31 pm
- Forum: Other words
- Topic: Donations
- Replies: 2
- Views: 1929
- Thu Jan 27, 2005 2:11 pm
- Forum: Other words
- Topic: New leader!!!!!
- Replies: 7
- Views: 2761
Glory
Congratulations Wai. It is good to see fight about first-forth position. Very interesting. Free time is important for all solvers of ACM. 

- Wed Jan 19, 2005 11:15 am
- Forum: Java
- Topic: Mysterious Error "/tmp/ccFBRCxemain.i(.text+0x12):&quo
- Replies: 2
- Views: 3097
- Tue Jan 11, 2005 9:52 pm
- Forum: Pascal
- Topic: Fornatting Decimal in Pascal
- Replies: 3
- Views: 9779
- Tue Jan 11, 2005 11:34 am
- Forum: Other words
- Topic: Some bad links on Problemset page
- Replies: 4
- Views: 1903
- Fri Jan 07, 2005 5:23 pm
- Forum: Other words
- Topic: just a Q
- Replies: 6
- Views: 2349
Re: just a Q
Most of problems have end of input in specification. Very often is end of file as number 0(zero) or end of file. You have to check and control end of input in your program.ywceric wrote:as u see, the input method of most of the task are in many lines.
how can i know when the input ends?
- Thu Jan 06, 2005 11:29 pm
- Forum: C++
- Topic: getline(cin, mystring); not working.......
- Replies: 3
- Views: 2855
Try change
to
Code: Select all
cout<<mystring;
Code: Select all
cout<<mystring<<endl;
- Thu Jan 06, 2005 11:25 pm
- Forum: Other words
- Topic: more input-output
- Replies: 4
- Views: 2292
Output/Input
I think that Input and Output are very good in test case on my opinion. Because we can practise more to test all problems because its very good training for catching the exceptions in Object programming.
Because very much problems are try catch finally in real software appliacation. We cannot need ...
Because very much problems are try catch finally in real software appliacation. We cannot need ...
- Wed Jan 05, 2005 4:37 pm
- Forum: Other words
- Topic: Some bad links on Problemset page
- Replies: 4
- Views: 1903
Some bad links on Problemset page
I found some bad links on Problemset page http://acm.uva.es/problemset/ in section HOWTOs:
Submit
Submit by eMail
Submit Pascal
Submit Java
OJ Answers
Write Source Code
I think that links are from old board. Could anybody(admin) change these links please? It's very good links for beginners and ...
Submit
Submit by eMail
Submit Pascal
Submit Java
OJ Answers
Write Source Code
I think that links are from old board. Could anybody(admin) change these links please? It's very good links for beginners and ...
- Mon Jan 03, 2005 3:01 pm
- Forum: Volume 4 (400-499)
- Topic: 445 - Marvelous Mazes
- Replies: 93
- Views: 21990
445 - Nightmare
I spend 12 hours of my life to fix a mistake of this problem. I got every time Presentation Error. I solved this problem correctly. But I want Accepted answer not Presentation Error. I use method by array and spaces, ! and \n(new line) and every time I got only Presentation Error. I used 132 ...