Submission #3682

#TimeUsernameProblemLanguageResultExecution timeMemory
3682waps12bGreat Pow! (kriii1_G)C++98
1 / 1
0 ms1088 KiB
#include<cstdio> int main() { int a, k; scanf("%d %d", &a, &k); int b = a+1; bool chk = 0; if( k == 0 ) { printf("%d\n", a); return 0; } if(b%2==0) { //홀수다 printf("%d\n", a); } else printf("%d\n", 1); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...