coders1122's blog

By coders1122, 13 years ago, In English
Well, I finally find time to write yet another blog post.

My first rated div2 match! :)
I really cannot comment my feelings after the match in one sentence.A blog post is surely the best way to express it.

Firstly, problem A.
I began coding in my default language C++ and used strings.I finish coding in less than 2 mins and answering coming for samples 1 and 2.
But, WA for sample 3.What the ****?

I check my code and a quick realisation why I fail.I have to make a quick decision about what to do next.
After struggling a little in dilemma, I move to Python.Less than 2 minutes into coding and I make a submit on A.Pretests Passed! Phew!
Now, I m like - "I need to get B fast!". One quick glance at the standings and the statistics are sky shooting.

I dont take into my head.Still calm and contained while reading B.After a quick read into a problem, I feel "Yes!I know this!" :-).
Again, few minutes into coding and hurray, another quick submit on B and same judgement - Pretests Passed.

Again I glance at the standings page and strangely I observe SO many submits on D.Initially i misread the problem and just feel the answer to be first N primes.
I submit it and then get a wrong answer on #1.
Im like - "This can't happen!!"
I again re read the question and I understand why I failed.

Not more than 5 minutes and I realise what is expected out of me.All what I coded is not a waste. Just a lil tweaking and I make a submit in C++. But here lies the greatest pitfall of today.
I initially find an overflow when i used long long int and then quickly changing to unsigned long long and the overflow disappears(atleast this is what I "thought").
I make a submit and Im floating at the top of my room.
I cant believe this is happening! :)

I decide I can make a nice performance this match.And move to C.
Man, this was possibly one of the "hard" C problems that ive solved.The idea isnt hard to get but the tricky part is to observe all the constraints and code clean.

A little tweaking after the regular coding and debugging into code and phew, answers coming!
Alarmingly, I make a quick submit and yipee, pretests passed!

Can't wait to move on to E.
But wait, Hacked on D.What the **** again??
I m halfway through E and 20 minutes left and I dunno what to do.Resubmit D or code E?

One of the smarter decisions I make today - Resubmit D! :)
After 5 minutes into looking back at the question, I realise what a big fool I am. Duh, obviously there will be an overflow!! What have I been thinking?? +.+(awed)

Anyways, I finish resubmitting D in python and I fall to 80s in the standings. :( .
I cant really concentrate trying to get E now and only 10 minutes left for contest completion.

A few thoughtful moments, but I really dont seem to get E.Maybe some other day for a full 5 submit! :(

Anyways, ending on a really high hopeful note that all my problems pass system tests,

Signing off,
Coders1122.

P.S:Do leave your comments.
EDIT:Yayy!A new color!This adds one more to my codeforces history. :)
  • Vote: I like it
  • +18
  • Vote: I do not like it

13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
had same situation with overflow in D. Thought that unsighned long long can help :D
  • 13 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it
    Funny enough! :)
    I hope you managed to make a resubmit though.
    Its really funny, pretests dint include any N > 16.
    However, cant really blame them for our funny mistake.
    But I wonder this though - Why dint people in my room not hack me early enough? :D
    Wish they did :P !
    What was your experience with D?
    • 13 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      When I realised my mistake I fastly resubmited it twice. First time for Long Arith. and secondly for if(n==2)
      Wonderfully, none of participants in my room wrote wrong sol. for D except me
      • 13 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        Im happy i could cover both n==2 and the big int arithmetic in one shot.
        Hoping high ratings for you,

        Ravi.
        • 13 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it
          We are both violet now! Congr.!
          • 13 years ago, # ^ |
              Vote: I like it 0 Vote: I do not like it
            To you too! :)
            Guess I missed the one above it just by a little. ;)

            Greed is human I guess! Lol! :D
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Two comments:
1st LOL
2nd something like that happened to mee to plus I GOT WA ON A:
  1.         if(N.compareTo(new BigInteger("127")) <= 0)
  2.             writeln("byte");
  3.         else if(N.compareTo(new BigInteger("32767")) <= 0)
  4.             writeln("short");
  5.         else if(N.compareTo(new BigInteger("2147483647")) <= 0)
  6.             writeln("int");
  7.         else if(N.compareTo(new BigInteger("9223372036854775807")) <= 0)
  8.             writeln("int");//LOL, LOL, LOL, KMN, ;(
  9.         else
  10.             writeln("BigInteger");
  11. PS: at the end I'll be laughing until I got asleep, I think
  • 13 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it
    Funny mistakes.
    I really find competition programming fun for the same cause.

    Im sorry that my motto - Cut Copy Paste ended up being a devil to you today! :)
    Hoping the next time would be brighter.

    Update: All my problems passed, feels nice :) !
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
I know you will get red soon... ATB.
Help me along :P hehe..