jain3120's blog

By jain3120, history, 5 weeks ago, In English,

The code. The problem is codeforces.com/contest/1/problem/B 1B - Spreadsheet https://ideone.com/m35mQq

 
 
 
 

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
5 weeks ago, # |
  Vote: I like it +10 Vote: I do not like it

Why 9999 and 99999?

  • »
    »
    5 weeks ago, # ^ |
      Vote: I like it -6 Vote: I do not like it

    The question says n won't be greater than 10^5 and the rows and colus won't be greater than 10^6

    • »
      »
      »
      5 weeks ago, # ^ |
        Vote: I like it +18 Vote: I do not like it

      • »
        »
        »
        »
        5 weeks ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I don't know what else to add.

        • »
          »
          »
          »
          »
          5 weeks ago, # ^ |
            Vote: I like it +5 Vote: I do not like it

          Really, i have no idea why do you have RE

    • »
      »
      »
      5 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      if you have only 99999 rows and cols and you try to access the 100000th one then it will not work