qriyadh's blog

By qriyadh, history, 3 months ago, In English

hi. i have got wa 3 in 1790A - Поликарп и День числа Пи. 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

»
3 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

»
3 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