Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

1036 solution python

import math
A,B,C = map(float,input().split())
D = (B**2)-(4*A*C)
if(D <0 or A==0):
    print("Impossivel calcular")
else:
    D=math.sqrt(D)
    R1 = (-B+D)/(2*A)
    R2 = (-B-D)/(2*A)
    print(f'R1 = {R1:0.5f}
R2 = {R2:0.5f}')
Comment

1038 solution python

X,Y=list(map(int,input().split()))
if(X == 1):
    price  = (float) (4.00 * Y)
elif(X == 2):
    price  = (float) (4.50 * Y)
elif(X == 3):
    price  = (float) (5.00 * Y)
elif (X == 4):
    price  = (float) (2.00 * Y);
elif (X == 5):
    price  = (float) (1.50 * Y)
print(f"Total: R$ {price:.2f}")
Comment

1036 solution python


sudo chown -R mysql:mysql /var/lib/mysql

Comment

PREVIOUS NEXT
Code Example
Python :: fetch json array from mysql django 
Python :: dont truncate dataframe jupyter pd display options 
Python :: pygame pin to top 
Python :: k fold CV with xgboost 
Python :: Using Python-docx to update cell content of a table 
Python :: python set current working directory debugging 
Python :: python puissance 
Python :: install nsml python 
Python :: python var power of 2 
Python :: python wheel 
Python :: django add to cart 
Python :: how to use python to download files from the interent 
Python :: how to plot side by side bar horizontal bar graph in python 
Python :: convert PIL RGB to opencv BRG 
Python :: Code Example of Hashmap in Python 
Python :: pd.loc 
Python :: python - remove exta space in column 
Python :: comment transformer un chaine de caractere en liste python 
Python :: kivy stuck in fullscreen in jupyter notebook macbook 
Python :: dictionary python 
Python :: how to get the output in rupees in pandas 
Python :: Python __floordiv__ magic method 
Python :: python __add__ 
Python :: how i get url value in get_queryset function in drf 
Python :: how to create a numpy array linspace in python 
Python :: stackoverflow: install old version of networkx 
Python :: python word encode asci 
Python :: bst deleting 
Python :: python get global variable by name 
Python :: python combinations function 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =