Submission #147398

# Submission time Handle Problem Language Result Execution time Memory
147398 2019-08-29T12:46:02 Z mosiashvililuka Arranging Shoes (IOI19_shoes) C++14
25 / 100
34 ms 3448 KB
#include<bits/stdc++.h>
using namespace std;
long long a,b,c,d,e,f[200009];
long long count_swaps(vector <int> S){
a=S.size();
	for(b=1; b<=a; b++) f[b]=S[b-1];
	if(a==2){
	if(f[1]<0) return 0LL; else return 1LL;
	}else{
      a/=2;
		return (a-1)*a/2;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 256 KB Output is correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 256 KB Output is correct
3 Correct 2 ms 256 KB Output is correct
4 Incorrect 2 ms 376 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 376 KB Output is correct
3 Correct 2 ms 256 KB Output is correct
4 Correct 2 ms 256 KB Output is correct
5 Correct 34 ms 3448 KB Output is correct
6 Correct 32 ms 3448 KB Output is correct
7 Correct 32 ms 3448 KB Output is correct
8 Correct 31 ms 3448 KB Output is correct
9 Correct 33 ms 3448 KB Output is correct
10 Correct 32 ms 3448 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 256 KB Output is correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 256 KB Output is correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Halted 0 ms 0 KB -