Submission #3533

#TimeUsernameProblemLanguageResultExecution timeMemory
3533joinsungGreat Pow! (kriii1_G)C++98
0 / 1
0 ms1672 KiB
#include <iostream> using namespace std; int main() { long long a,k; cin>>a>>k; if (k==0) cout << a << endl; else if (a%2==0) cout << 1 << endl; else cout << a-1 << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...