Submission #1186861


Source Code Expand

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n;
		n = s.nextInt();
		if(n % 2 == 0) System.out.println(n-1);
		else System.out.println(n+1);
	}

Submission Info

Submission Time
Task B - ペア
User ne280154
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 240 Byte
Status CE

Compile Error

./Main.java:10: error: reached end of file while parsing
	}
	 ^
1 error