# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
296074 |
2020-09-10T08:48:51 Z |
Dovran |
Toy Train (IOI17_train) |
C++11 |
|
9 ms |
1536 KB |
#include <bits/stdc++.h>
#include "train.h"
#define N 20009
#define pii pair <int, int>
#define ff first
#define ss second
#define sz() size()
#define pb push_back
#define ll long long
using namespace std;
bool v[N];
vector<int>ans;
std::vector<int> who_wins(std::vector<int>o, std::vector<int>p, std::vector<int>u, std::vector<int>v){
int n=o.sz();
int m=u.sz();
vector<int>e[N];
int c[N];
for(int i=0; i<m; i++){
e[u[i]].pb(v[i]);
if(u[i]==v[i])
c[u[i]]=1;
}
for(int i=0; i<n; i++){
if(p[i] and o[i] and c[i])
v[i]=1;
v[i]+=v[i-1];
ans.pb(v[i]);
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
1280 KB |
3rd lines differ - on the 1st token, expected: '0', found: '3309' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
768 KB |
3rd lines differ - on the 1st token, expected: '0', found: '13' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
8 ms |
1536 KB |
3rd lines differ - on the 1st token, expected: '0', found: '1662' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
8 ms |
1408 KB |
3rd lines differ - on the 1st token, expected: '1', found: '1620' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
9 ms |
1536 KB |
3rd lines differ - on the 1st token, expected: '1', found: '2409' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
1280 KB |
3rd lines differ - on the 1st token, expected: '0', found: '3309' |
2 |
Halted |
0 ms |
0 KB |
- |