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 1409. Two Gangsters

Java
Posted by Vladislav 6 Aug 2012 00:45
import java.io.*;
public class D  {
public static void main (String args []) throws Exception {
BufferedReader d = new BufferedReader(new InputStreamReader(System.in));
String v = d.readLine();
BufferedReader e = new BufferedReader(new InputStreamReader(System.in));
String c = e.readLine();
try
{
int a = Integer.parseInt(v);
int b = Integer.parseInt(c);
System.out.print(a+" ");System.out.println(b);
System.out.print(b-1+" ");System.out.print(a-1);
}
catch(Exception e1) {System.out.println("Error translating text to int");}
System.out.println();
}
}

I do smth wrong?
Re: Java
Posted by Noob 6 Aug 2012 09:47
Read FAQ how to input numbers
Read FAQ how to output answer
Re: Java
Posted by RainbowDash 15 Sep 2012 00:57
You used Java, that's what's wrong.