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

Автор gchandel6, 12 лет назад, По-английски

Hello everyone , i am new to codeforces and as i was solving my first problem "SPREADSHEETS" from codeforces beta round #1 , which is showing wrong_answer in test1 , while in my g++ compiler its giving correct output for that case ...please anyone help....why is this happening??

THIS IS LINK TO MY CODE::::

http://ideone.com/25zz0L

TEST CASE : 2 R23C55 BC23

ANSWER : BC23 R23C55

ON MY COMPUTER : BC23 R23C55

CODEFORCES SHOWING : BC23 R23C54

Why is codeforces showing 54 instead of 55?

  • Проголосовать: нравится
  • -30
  • Проголосовать: не нравится

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You should forget about pow when you don't really need it. Use your function and the outcome will be WA on test #6.

BTW, can anybody explain why does this happen? Recently, I read a blog about a mistake and I really want to know why...