Submission #1186873
Source Code Expand
import java.util.*; public class abc034 { public static void main(String[] args) { Scanner std = new Scanner(System.in); int n; n = std.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 | 256 Byte |
Status | CE |
Compile Error
./Main.java:13: error: reached end of file while parsing } ^ 1 error