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

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

Hello everyone, I am facing a problem with a Problem.

Problem Link: https://mirror.codeforces.com/problemset/problem/1547/C

When I tried to submit my Python Code. It failed due to RunTime Error, But the same input provides the required correct output in my local ide. Please guide me through.

My Solution Link: https://mirror.codeforces.com/contest/1547/submission/235386393

Is there a trick in python I am missing?

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

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

You can only use the standard libraries that are part of "vanilla" python in codeforces. Third party libraries like numpy, pandas are not supported. Since you are not using the imported pandas library in your code, remove the import and try again.

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

    The code didn't get accepted due to some mistake in my implementation. But your solution to remove pandas worked.