답안 #213568

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
213568 2020-03-26T07:02:25 Z berryzed Great Pow! (kriii1_G) Java 11
1 / 1
135 ms 14088 KB
import java.util.Scanner;
public class G {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int k = scanner.nextInt();

		if ((k != 0) && (a % 2 == 0)) a = 1;
		System.out.println(a);
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 122 ms 13676 KB Output is correct
2 Correct 126 ms 13948 KB Output is correct
3 Correct 125 ms 13600 KB Output is correct
4 Correct 123 ms 13784 KB Output is correct
5 Correct 125 ms 13844 KB Output is correct
6 Correct 123 ms 14012 KB Output is correct
7 Correct 122 ms 13344 KB Output is correct
8 Correct 124 ms 13700 KB Output is correct
9 Correct 124 ms 13940 KB Output is correct
10 Correct 121 ms 13440 KB Output is correct
11 Correct 123 ms 13692 KB Output is correct
12 Correct 128 ms 13664 KB Output is correct
13 Correct 122 ms 13588 KB Output is correct
14 Correct 126 ms 13816 KB Output is correct
15 Correct 123 ms 13716 KB Output is correct
16 Correct 126 ms 13964 KB Output is correct
17 Correct 122 ms 13552 KB Output is correct
18 Correct 122 ms 13920 KB Output is correct
19 Correct 124 ms 13460 KB Output is correct
20 Correct 123 ms 13688 KB Output is correct
21 Correct 133 ms 13836 KB Output is correct
22 Correct 124 ms 13928 KB Output is correct
23 Correct 135 ms 13808 KB Output is correct
24 Correct 125 ms 13720 KB Output is correct
25 Correct 123 ms 13560 KB Output is correct
26 Correct 123 ms 14088 KB Output is correct
27 Correct 124 ms 13680 KB Output is correct
28 Correct 123 ms 13588 KB Output is correct
29 Correct 125 ms 13732 KB Output is correct
30 Correct 127 ms 13692 KB Output is correct
31 Correct 118 ms 13548 KB Output is correct
32 Correct 121 ms 13384 KB Output is correct
33 Correct 124 ms 13828 KB Output is correct
34 Correct 128 ms 13612 KB Output is correct