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

runtime error pomogite pojalusta
Posted by Axmadjon 14 Apr 2014 13:17
import java.util.Scanner;

public class main {
public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int v = Integer.parseInt(s.nextLine());
        int c = Integer.parseInt(s.nextLine());
        if (c != 0 || v != 0) {
            System.out.print(c - 1 + " ");
            System.out.print(v - 1);
        } else {
            System.out.println("Error");
        }
    }
}

v chom oshibka