Submission #3573

#TimeUsernameProblemLanguageResultExecution timeMemory
3573BothEarRimGreat Pow! (kriii1_G)C++98
1 / 1
0 ms1672 KiB
#include <iostream> #include <iomanip> #include <cstdio> #include <string> #include <cstring> #include <cstdlib> #include <cmath> #include <utility> #include <locale> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <list> #include <set> #include <climits> #include <cfloat> #define PI acos(0.0) * 2.0 using namespace std; int main() // Problem G. Great Pow! { int a, k; scanf("%d %d", &a, &k); if(k==0) printf("%d\n", a); else { if(a%2==0) printf("1\n"); else printf("%d\n", a); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...