Submission #213568

#TimeUsernameProblemLanguageResultExecution timeMemory
213568berryzedGreat Pow! (kriii1_G)Java
1 / 1
135 ms14088 KiB
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); } }
#Verdict Execution timeMemoryGrader output
Fetching results...