Блог пользователя coders1122

Автор coders1122, 14 лет назад, По-английски
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. :)
  • Проголосовать: нравится
  • +18
  • Проголосовать: не нравится

14 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
had same situation with overflow in D. Thought that unsighned long long can help :D
  • 14 лет назад, # ^ |
      Проголосовать: нравится +1 Проголосовать: не нравится
    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?
    • 14 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится
      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
14 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
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
  • 14 лет назад, # ^ |
      Проголосовать: нравится +1 Проголосовать: не нравится
    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 :) !
14 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I know you will get red soon... ATB.
Help me along :P hehe..