Submission #3533

# Submission time Handle Problem Language Result Execution time Memory
3533 2013-08-31T06:25:46 Z joinsung Great Pow! (kriii1_G) C++
0 / 1
0 ms 1672 KB
#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 time Memory Grader output
1 Incorrect 0 ms 1672 KB Output isn't correct
2 Halted 0 ms 0 KB -