제출 #152488

#제출 시각아이디문제언어결과실행 시간메모리
152488petar_vitoracArranging Shoes (IOI19_shoes)C++14
10 / 100
31 ms2424 KiB
#include "shoes.h"

#include <bits/stdc++.h>


bool negative(int x){
	if(abs(x)==x){
		return false;
	}
	else{
		return true;
	}
}

long long count_swaps(std::vector<int> s) {
	if(s.size()==2){
		if(negative(s[0])){
			return 0;
		}
		else{
			return 1;
		}
	}
	return 1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...