답안 #157236

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
157236 2019-10-10T08:11:10 Z AKaan37 장난감 기차 (IOI17_train) C++17
0 / 100
74 ms 1048 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++){
			for(int k=0;k<(int)y.size();k++){
				cev++;
			}
		}
		if(flag==1)v.pb(1);
		else v.pb(0);
	}
	return v;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 34 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 74 ms 812 KB Output is correct
2 Correct 73 ms 1016 KB Output is correct
3 Correct 73 ms 1048 KB Output is correct
4 Incorrect 74 ms 1016 KB 3rd lines differ - on the 1st token, expected: '1', found: '0'
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 59 ms 760 KB 3rd lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 74 ms 836 KB 3rd lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 34 ms 632 KB 3rd lines differ - on the 14th token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -