# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
29810 |
2017-07-21T07:36:48 Z |
aybala |
Robots (IOI13_robots) |
C++11 |
|
0 ms |
6316 KB |
#include "robots.h"
#include<bits/stdc++.h>
#define fori(a,b,c) for(int a=b; a<c; a++)
#define ford(a,b,c) for(int a=b; a>=c; a--)
#define ll long long
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define fi first
#define se second
using namespace std;
bool ap[2],bp[2];
int putaway(int A, int B, int T, int X[], int Y[], int W[], int S[]) {
fori(i,0,2){
if(W[i]<X[0]){
ap[i]=1;
}
if(S[i]<Y[0]){
bp[i]=1;
}
}
if(ap[0]==0 && ap[1]==0 && bp[0]==0 && bp[1]==0){
return -1;
}
if(ap[0]==0 && ap[1]==0 && bp[0]==1 && bp[1]==1 ){
return 2;
}
if(bp[0]==0 && bp[1]==0 && ap[0]==1 && ap[1]==1 ){
return 2;
}
return 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
6316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
6316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
6316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
6316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
6316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |