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

Автор qriyadh, история, 5 месяцев назад, По-английски

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

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

»
5 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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