Let's discuss problems.

How to solve the geography problem?

# | User | Rating |
---|---|---|

1 | tourist | 3880 |

2 | jiangly | 3669 |

3 | ecnerwala | 3654 |

4 | Benq | 3627 |

5 | orzdevinwang | 3612 |

6 | Geothermal | 3569 |

6 | cnnfls_csy | 3569 |

8 | jqdai0815 | 3532 |

9 | Radewoosh | 3522 |

10 | gyh20 | 3447 |

# | User | Contrib. |
---|---|---|

1 | awoo | 161 |

1 | maomao90 | 161 |

3 | adamant | 156 |

4 | maroonrk | 153 |

5 | -is-this-fft- | 148 |

5 | SecondThread | 148 |

7 | atcoder_official | 147 |

7 | Petr | 147 |

9 | nor | 144 |

10 | TheScrasse | 142 |

Let's discuss problems.

How to solve the geography problem?

Hey guys! Hello IOI 2018 contestants. How's everything at Japan?

Let's use this thread to get updates and discuss problems. Day 1 contest is a few hours away. Anyone who has a mirror link / live ranklist link please post in comments.

Hope everyone has a wonderful time!

We all have been waiting for this, a clean readable text version of Looking for a Challenge! My man Bar-B-Q informed me of it being finally out.

So without further adieu, here goes the link: https://www.nras.org.uk/data/events%20flyer%20front%20and%20back.pdf

Enjoy and leave a thanks for my man Bar-B-Q here. ^_^

Link: https://toph.co/p/breaking-math

The task is simple. Given *n*, *k* you gotta print

where ω(*j*) is the number of distinct prime factors of *j*.

Constraints: 1 ≤ *k* ≤ 10, 1 ≤ *n* ≤ 10^{11}.

TL is fuckin' big, 15 seconds. Wut do?

Problem: 351E - Jeff and Permutation

Abridged statement: given *n* ≤ 2000 integers, we can multiply some of them by - 1. Goal is to minimize number of inversions (pairs (*i*, *j*) such that *i* < *j* and *a*_{i} > *a*_{j}). Print the minimum number of inversions.

Solution: 30244905

This solution replaces all numbers with its absolute value first. Then for each index *i* this solution adds *min*(*L*, *R*) to answer where *L* = number of smaller elements to left, *R* = number of smaller elements to right. Why does it work?

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jul/25/2024 22:42:25 (h2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|