Idiotas's blog

By Idiotas, history, 22 months ago, In English

Hello,

I’m Kai and I live in Honolulu(Hawaii). Usually each contest in Hawaii starts at 4:35 am to 6:35 am. I think we can all agree that taking part of a contest is very hard because I even have school. In the end, I decided to move to Berlin(Germany) just to participate to more contests. Do you think this is a great idea?

  • Vote: I like it
  • +33
  • Vote: I do not like it

| Write comment?
»
22 months ago, # |
  Vote: I like it +39 Vote: I do not like it

Yes, a very good decision.

  • »
    »
    22 months ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    I lived in berlin. I recommend going to romania, CodeForces rounds are right after school ends.

    HappyNewYearGoodYear

    Here is a seg tree:


    #include <iostream> #define int long long using namespace std; int aint[800005]; void update(int node, int st, int dr, int i, int val){ if(st == dr){ aint[node] = val; return; } int mid = (st+dr)/2; if(i <= mid) update(2*node+1, st, mid, i, val); else update(2*node+2, mid+1, dr, i, val); aint[node] = aint[2*node+1] + aint[2*node+2]; } int query(int node, int st, int dr, int l, int r){ if(st == l && dr == r){ return aint[node]; } int mid = (st+dr)/2, sum=0; if(l <= mid) sum += query(2*node+1, st, mid, l, min(r, mid)); if(r > mid) sum += query(2*node+2, mid+1, dr, max(l, mid+1), r); return sum; } int32_t main(){ int n, q; cin>>n>>q; for(int i=0; i<n; i++){ int a; cin>>a; update(0, 0, n-1, i, a); } for(int i=0; i<q; i++){ int cer, a, b; cin>>cer>>a>>b; if(cer == 1) update(0, 0, n-1, a-1, b); else cout<<query(0, 0, n-1, a-1, b-1)<<endl; } }
    • »
      »
      »
      22 months ago, # ^ |
        Vote: I like it +10 Vote: I do not like it

      Since you thought it is a good idea to post that: this implementation is an abomination, you should be ashamed of yourself.

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Move to Germany and grind Codeforces like a boss. :)

»
22 months ago, # |
  Vote: I like it +16 Vote: I do not like it

i think you shoul move to my house

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Only if you are very certain you can assert the same financial stability.

  • »
    »
    22 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I've just realised there might be a great chance I've been trolled

»
22 months ago, # |
  Vote: I like it +3 Vote: I do not like it

potato

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Are you serious

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Despite this almost obviously being a troll post, here goes.

No. At the very least if you care about competing seriously, where rating is involved, at least get to a point where you're beyond the cheater wall (Maybe 1900+ would be good enough usually?), otherwise, you'll just be cross. If you don't care about ratings, just give virtuals for now, and give the occasional contest on weekends.

Also, I read something about normal contest timings changing or whatnot pretty soon, so keep that in mind as well.

»
22 months ago, # |
  Vote: I like it +11 Vote: I do not like it

After moving to US for college, I have to admit that I miss Germany. Codeforces rounds were at 4:35 pm there, but now it's 6:35 am.

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

Here's my advice. If you're moving to another continent, your decision should not be based solely off of Codeforces.