답안 #157238

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
157238 2019-10-10T08:15:14 Z AKaan37 장난감 기차 (IOI17_train) C++17
0 / 100
583 ms 1016 KB
#include "train.h"
//Sani buyuk Osman Pasa Plevneden cikmam diyor.
//FatihSultanMehmedHan
//Abdulhamid Han
//Bismillahirrahmanirrahim
//█▀█─█──█──█▀█─█─█
//█▄█─█──█──█▄█─█▄█
//█─█─█▄─█▄─█─█─█─█

#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")

#include <bits/stdc++.h>

#include <cstdio>
#include <vector>
#include <cassert>

using namespace std;

typedef long long lo;
typedef pair< lo,lo > PII;

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define fio() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define FOR for(int i=1;i<=n;i++)
#define mid ((start+end)/2)
#define ort ((bas+son)/2)

const lo MAX = -1000000000000000000;
const lo MIN = 1000000000000000000;
const lo inf = 1000000000;
const lo KOK = 100000;
const lo LOG = 30;
const lo li = 500005;
const lo mod = 1000000007;

int n,m,b[li],a[li],flag,t,fa[li],vis[5005];
int cev;
string s;
vector<int> v;

inline int dsu(int x){
	if(x==fa[x])return x;
	return fa[x]=dsu(fa[x]);
}

std::vector<int> who_wins(std::vector<int> a, std::vector<int> r, std::vector<int> x, std::vector<int> y) {
	for(int i = 0; i < (int)a.size(); i++){
		flag=0;
		memset(vis,0,sizeof(vis));
		for(int j=0;j<(int)a.size();j++)fa[j]=j;
		for(int j=0;j<(int)x.size();j++){
			
			vis[dsu(x[j])]=1;
		}
		if(flag==1)v.pb(1);
		else v.pb(0);
	}
	return v;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 203 ms 632 KB 3rd lines differ - on the 14th token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 376 KB 3rd lines differ - on the 2nd token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 524 ms 968 KB Output is correct
2 Correct 524 ms 1016 KB Output is correct
3 Correct 525 ms 1016 KB Output is correct
4 Incorrect 583 ms 892 KB 3rd lines differ - on the 1st token, expected: '1', found: '0'
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 439 ms 752 KB 3rd lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 582 ms 852 KB 3rd lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 203 ms 632 KB 3rd lines differ - on the 14th token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -