Search found 1 match

by selection989
Fri May 06, 2016 6:16 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318253

Re: 100 - The 3n + 1 problem

Hi there,

I am having trouble getting it to work in python. I keep getting a time limit exceeded. Any suggestions would be much appreciated. Here is my code:
import sys
from sys import stdin

def main():

for line in stdin:
curr_line=line.split()
if curr_line[0]<=curr_line[1]:
min_num=int ...

Go to advanced search