Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
(P3) Zadanie Kolokwium 2013: Trójkąty i trójkąty
ile=0 ile = int(input()) bok=[] for i in range(ile): bok=input().split(' ') bok = list(map(int, bok)) if (bok[0]+bok[1])>bok[2] and (bok[2]+bok[1])>bok[0] and (bok[0]+bok[2])>bok[1]: if bok[0]==bok[1]==bok[2]: print("ROWNOBOCZNY") elif (bok[0]==bok[1]) or (bok[1]==bok[2]) or (bok[0]==bok[2]): print("ROWNORAMIENNY") else: if ((bok[0]*bok[0]+bok[1]*bok[1])==bok[2]*bok[2]) or ((bok[2]*bok[2]+bok[1]*bok[1])==bok[0]*bok[0]) or ((bok[0]*bok[0]+bok[2]*bok[2])==bok[1]*bok[1]): print("PROSTOKATNY") else: print("INNY TROJKAT") else: print("NIE")
run
|
edit
|
history
|
help
0
Komalsri123
Code
Assignment-2a
Factorial number using recursion
even no
me
Multiply two marrix
0403_diamond
Mengira luas dan perimeter segi tiga
Lesson 9