백준 11332 시간초과
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import math import sys def solution(oper,n,t,l): n,t,l=int(n),int(t),int(l) oneSecond=(10**8)*l if oper=='O(N)': bigO=n*t elif oper=='O(2^N)': bigO=pow(2,n)*t elif oper == 'O(N!)': bigO=math.factorial(n)*t elif oper == 'O(N^3)': bigO=pow(n,3)*t elif oper == 'O(N^2)': bigO = pow(n, 2) * t if oneSecond(10**8)*l : return False return True def so..
2021. 12. 28.