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 1123. Salary

Problems with solving
Posted by Alex_SyktSU 1 Sep 2006 00:30
I tried to solve in c++, but got WA1. I used "cin.get(c)"
to get chars(if it's important). In my tests all was OK.

Then tried to solve in Pascal. Used same algorithm.
First I was using "while not eof" to get chars, but met problems with counting the amount of chars. Used simple "s:string; readln(s)"(if it's important). And got AC then.

Edited by author 01.09.2006 00:53
Re: Problems with solving
Posted by AlexF 18 Sep 2006 21:24
Strange! I solved it using cin.get(c) in C++ without any problems!