qriyadh's blog

By qriyadh, history, 10 months ago, In English

hi. i have got wa 3 in 1790A - Polycarp and the Day of Pi. here is my submission 250262189. what is the problem? i looked at test details but i think my code works efficiently

  • Vote: I like it
  • -4
  • Vote: I do not like it

»
10 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

The string n contains up to 30 digits.

so, has up to 30 digits of pi

str pi = "31415";

you have only 5 digits of pi

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

I think this solution is more efficient than your solution, in the statement says it is max 30 digits, you need to write pi number's first 30 digits than you can check like my submission: 199246301