# | Submission time^{} |
Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|

347986 | 2021-01-14T01:49:35 Z | Chaska | Arranging Shoes (IOI19_shoes) | C++17 | 34 ms | 3308 KB |

#include "shoes.h" #include <bits/stdc++.h> using namespace std; int n; long long count_swaps(vector<int> s) { n = s.size()/2; int p =0; long long k=0; for (int i=0;i<n+n;i++) { if (s[i]<0) { k += abs(i-p); p++; p++; } } return k; }

# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|

1 | Correct | 0 ms | 364 KB | Output is correct |

2 | Correct | 1 ms | 364 KB | Output is correct |

# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|

1 | Correct | 0 ms | 364 KB | Output is correct |

2 | Correct | 1 ms | 364 KB | Output is correct |

3 | Incorrect | 0 ms | 364 KB | Output isn't correct |

4 | Halted | 0 ms | 0 KB | - |

# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|

1 | Correct | 0 ms | 364 KB | Output is correct |

2 | Correct | 1 ms | 364 KB | Output is correct |

3 | Correct | 1 ms | 364 KB | Output is correct |

4 | Correct | 1 ms | 364 KB | Output is correct |

5 | Correct | 1 ms | 364 KB | Output is correct |

6 | Correct | 1 ms | 364 KB | Output is correct |

7 | Correct | 1 ms | 364 KB | Output is correct |

8 | Correct | 1 ms | 364 KB | Output is correct |

9 | Correct | 1 ms | 364 KB | Output is correct |

10 | Correct | 1 ms | 364 KB | Output is correct |

11 | Correct | 1 ms | 364 KB | Output is correct |

12 | Correct | 1 ms | 364 KB | Output is correct |

13 | Correct | 1 ms | 364 KB | Output is correct |

14 | Correct | 1 ms | 364 KB | Output is correct |

15 | Correct | 1 ms | 364 KB | Output is correct |

16 | Correct | 1 ms | 364 KB | Output is correct |

17 | Correct | 1 ms | 364 KB | Output is correct |

18 | Correct | 1 ms | 364 KB | Output is correct |

19 | Correct | 1 ms | 364 KB | Output is correct |

20 | Correct | 3 ms | 620 KB | Output is correct |

21 | Correct | 3 ms | 620 KB | Output is correct |

22 | Correct | 27 ms | 3180 KB | Output is correct |

23 | Correct | 26 ms | 3180 KB | Output is correct |

24 | Correct | 28 ms | 3180 KB | Output is correct |

25 | Correct | 23 ms | 2944 KB | Output is correct |

26 | Correct | 28 ms | 3180 KB | Output is correct |

27 | Correct | 25 ms | 2924 KB | Output is correct |

28 | Correct | 24 ms | 3180 KB | Output is correct |

29 | Correct | 32 ms | 3180 KB | Output is correct |

30 | Correct | 24 ms | 3180 KB | Output is correct |

31 | Correct | 29 ms | 3308 KB | Output is correct |

32 | Correct | 24 ms | 3180 KB | Output is correct |

33 | Correct | 23 ms | 2924 KB | Output is correct |

34 | Correct | 25 ms | 3180 KB | Output is correct |

35 | Correct | 1 ms | 364 KB | Output is correct |

36 | Correct | 1 ms | 364 KB | Output is correct |

37 | Correct | 24 ms | 3180 KB | Output is correct |

38 | Correct | 25 ms | 3180 KB | Output is correct |

39 | Correct | 24 ms | 3180 KB | Output is correct |

# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|

1 | Correct | 1 ms | 364 KB | Output is correct |

2 | Correct | 1 ms | 364 KB | Output is correct |

3 | Correct | 1 ms | 364 KB | Output is correct |

4 | Correct | 1 ms | 364 KB | Output is correct |

5 | Correct | 27 ms | 3180 KB | Output is correct |

6 | Correct | 24 ms | 3180 KB | Output is correct |

7 | Correct | 30 ms | 3180 KB | Output is correct |

8 | Correct | 34 ms | 3308 KB | Output is correct |

9 | Correct | 25 ms | 3184 KB | Output is correct |

10 | Correct | 25 ms | 3200 KB | Output is correct |

# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|

1 | Correct | 0 ms | 364 KB | Output is correct |

2 | Correct | 1 ms | 364 KB | Output is correct |

3 | Incorrect | 0 ms | 364 KB | Output isn't correct |

4 | Halted | 0 ms | 0 KB | - |

# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|

1 | Correct | 0 ms | 364 KB | Output is correct |

2 | Correct | 1 ms | 364 KB | Output is correct |

3 | Incorrect | 0 ms | 364 KB | Output isn't correct |

4 | Halted | 0 ms | 0 KB | - |