Submission #143308

# Submission time Handle Problem Language Result Execution time Memory
143308 2019-08-13T15:28:08 Z VladaMG98 Arranging Shoes (IOI19_shoes) C++17
15 / 100
33 ms 1916 KB
#include "shoes.h"

long long count_swaps(std::vector<int> S) {
  int N = (int)S.size() / 2;
  return 1ll * N * (N - 1) / 2;
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Incorrect 2 ms 376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Incorrect 2 ms 376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Incorrect 2 ms 376 KB Output isn't 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 Correct 0 ms 348 KB Output is correct
4 Correct 2 ms 256 KB Output is correct
5 Correct 31 ms 1912 KB Output is correct
6 Correct 31 ms 1912 KB Output is correct
7 Correct 33 ms 1912 KB Output is correct
8 Correct 31 ms 1916 KB Output is correct
9 Correct 31 ms 1916 KB Output is correct
10 Correct 31 ms 1916 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Incorrect 2 ms 376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Incorrect 2 ms 376 KB Output isn't correct