Tricky Ratio

Given the radius (r) of a circle you have to calculate the ratio between the circumference (C) of th…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

I thing I just have to print pi. no matter what is the input… So why I’m getting a Runtime Error?

Can you explain please?

import math
from collections import deque, Counter, defaultdict
from bisect import bisect_left, bisect_right
from heapq import heappush, heappop, heapify
import sys
if "LOCAL" in sys.argv:
sys.stdin = open('input.txt', 'r')
sys.stdout = open('output.txt', 'w')

def solve():
x = int(sys.stdin.readline().strip())
ans = math.pi
print(f"{ans:.5f}")

if __name__ == "__main__":

solve()