Runtime error in python

i am getting runtime error even in simple code:#python3
t=int(input())
print(t)

Maybe, you are not giving any input.

this code is not running on ide how its possible to give input .

Its running fine. You are doing something wrong. Btw which ide

this t is stand for the test cases. but my code is working fine in my computer .but when i use t even for simple task its give runtime error only in python.

make sure to give the input in the custom input section of the online ide otherwise it will give EOFError

but i am solving one qus and its giving me error when i submit my solution. even a simple factorial qus.

Can you link to your submission?

(Unless it’s from an ongoing Contest, of course!)

1 Like

it’s from an ongoing contest, but i get error in any problem: ICL1902

#indentation applied
this code is someone else’s code its accepted but when i try to submit even same copy paste then i got error.

simple code:

cook your dish here

cook your dish here

import math
T=int(input())
k=0
while(k<T):
N=int(input())
rem=N
count=0
i=0
while(rem>0):
rem-=pow(int(math.sqrt(rem)),2)
count+=1
print(count)
k+=1

Simple Copy paste from another ide will give the runtime error

According to this, you haven’t made any Python submissions to ICL1902. Please link to an actual Python submission that isn’t working :slight_smile:

Edit:

Are you sure you’re not just clicking “Run” (and not providing Custom Input) instead of “Submit”?

1 Like

Better if you can share ideone link.