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 1006. Square Frames

input reading with JAVA
Posted by Angel Dzhigarov 31 Oct 2006 19:22
  Hello,

  Im trying to solve this problem with JAVA, but I have WA on the 1st test case (which is most probably the sample test)...
  For the purpose of testing I replaced those 'corner' symbols with other symbols, and my solution worked fine on the sample test.
  Does anyone knows how can I read the input correctly?
  For now Im using:

  char k=p.charAt(j);
  int asci=k;
  switch (asci) {
    case 218:
             ..................