nik_exists's blog

By nik_exists, 105 minutes ago, In English

Thank y'all so much for participating! Code will be added soon.

2259A - Moo Language School

Solution
Code
Difficulty
Quality

2259B - Minus Two

Hint 1
Hint 2
Solution
Code
Difficulty
Quality

2259C - 101

Hint 1
Hint 2
Solution
Code
Difficulty
Quality

2259D - MEX Multiset

Hint 1
Hint 2
Solution
Code
Difficulty
Quality

2259E - Treasure Map Destruction (Constructive Version)

Hint 1
Hint 2
Solution
Code
Difficulty
Quality

2259F - Binary Bubble Sort Inversions

Hint 1
Hint 2
Hint 3
Solution
Code
Difficulty
Quality

2259G - Index Removal

Hint 1
Hint 2
Solution
Code
Difficulty
Quality

2259H - Treasure Map Destruction (Counting Version)

Read the solution to problem E first

Hint 1
Hint 2
Hint 3
Solution
Code
Difficulty
Quality
  • Vote: I like it
  • +28
  • Vote: I do not like it

»
88 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by nik_exists (previous revision, new revision, compare).

»
84 minutes ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

good contest!

»
84 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

nice round thanks !

»
84 minutes ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

good problems, C was kind of annoying to implement

»
83 minutes ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

Amazing round. Ty king

»
83 minutes ago, hide # |
Rev. 4  
Vote: I like it +1 Vote: I do not like it

Maybe you are missing the space after [tutorial:2259B]?

It works for me:

Tutorial is loading...

nik_exists

»
82 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

W contest

»
82 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

2259E code ... cpp :skull:

»
82 minutes ago, hide # |
Rev. 3  
Vote: I like it +1 Vote: I do not like it

The editorial isn't working because it doesn't use the announcement format /j

»
81 minute(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

C is harder than D. But still orz round by nik_exists

»
74 minutes ago, hide # |
 
Vote: I like it +1 Vote: I do not like it
#include "codeforces.h"
#include <chrono>
#include <vector>

using namespace std;
using namespace cf;

int main() {
    comment << "\nGreat contest!\n";
}

»
66 minutes ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

E can be solved with 2-SAT

  • »
    »
    62 minutes ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Can you explain more

  • »
    »
    24 minutes ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    i thought of 2SAT and then went for other solution (because i think we don't need 2SAT at all).

    Basically if a[i] == 0, then there should be treasure at position i. Otherwise if a[i] > 0, there should be a treasure at i — a[i] OR i + a[i]. So you just need to add a OR clause and let 2SAT solve it.

    • »
      »
      »
      23 minutes ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      if i — a[i] <= 0. Then i + a[i] MUST be treasure. if i + a[i] > n. Then i — a[i] MUST be treasure. otherwise either of them can be a treasure.

»
62 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

It Was a fun contest , but i got struck at E for almost the whole contest :-(

»
61 minute(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I cared too much about my rating. That's why I wanted to solve C as fast as I could and made many silly mistakes

»
60 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Thanks for the contest! I enjoyed it

»
59 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

should i try to upsolve E? current rating is 1072 and max is 1100.

»
57 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

good cumtest

»
54 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Nice contest!

»
50 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i dont know why i found it hard to understand E statement otherwise amazing round!

»
50 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Please elaborate more on the editorial of $$$E$$$.

  • »
    »
    17 minutes ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    let the given array be v and the final string be s for each v[i]>0 the closest island to it should be at position i-v[i] or i+v[i] if there is an island (v[j]=0) in the range ]i-v[i],i+v[i][ then that element j will be closer to v[i] which will be a contradiction so you should output -1 then for each -1 outside of the union of these ranges you can consider it as an island (set it to 1 in s and its valid given that it does'nt influence other elements) the -1 inside the union of the ranges will be set to 0 in the final string because they cant be set to 1 after that you need to check for every element i with v[i]>0 if there is an island in i-v[i] or i+v[i]

»
44 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The problems were amazing and realized I need to improve myself, java was kind of problematic at times

»
36 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why does the system testing so long?

»
30 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

good contest, but G is too easy in Div.3

»
29 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I liked this round a lot, but B felt easier to implement than A xd. And G was really easy compared to E for me.

Good work!

»
28 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

E took me longer than F and almost had G on time but still it was a great round!

»
10 minutes ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Amazing contest, A-D was very easy.The jump from D to E was pretty big for a div 3.

Question F was really fun!