Submission #3742

#TimeUsernameProblemLanguageResultExecution timeMemory
3742wurikijiGreat Pow! (kriii1_G)C++98
1 / 1
0 ms1088 KiB
#include <cstdio> int main(void){ long long a, k; scanf("%lld %lld", &a , &k ); if( a %2 ) { printf("%lld\n", a); } else { if( k > 1) printf("1\n"); else printf("%lld\n", a); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...