# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
3476 |
2013-08-31T06:04:39 Z |
mjy0503 |
Great Pow! (kriii1_G) |
C++ |
|
0 ms |
1088 KB |
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <vector>
#include <math.h>
int n;
int main(){
int m,c;
scanf("%d %d",&n,&m);
if(n%2==1)
printf("%d\n",n);
else{
if(m%2==1){
printf("1\n");
}
else{
printf("%d\n",n);
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1088 KB |
Output is correct |
2 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |