제출 #3533

#제출 시각아이디문제언어결과실행 시간메모리
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...