Submission #12742

# Submission time Handle Problem Language Result Execution time Memory
12742 2015-01-02T10:15:07 Z ainu7 Great Pow! (kriii1_G) C++
0 / 1
0 ms 1676 KB
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;

int main()
{
  int a, k;
  cin >> a >> k;
  if (k > 0 && a % 2) printf("%d\n", 1);
  else printf("%d\n", a);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1676 KB Output isn't correct
2 Halted 0 ms 0 KB -