s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s155158468 | p02379 | u664228906 | 1509104943 | Python | Python3 | py | Runtime Error | 0 | 0 | 85 | import math
x1,y1,x2,y2 = input().split()
print(math.sqrt((x2-x1)**2 + (y2-y1)**2)) |
s682198663 | p02379 | u748921161 | 1509180038 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | import math
str = input().split(' ')
x1 = int(str[0])
x2 = int(str[1])
y1 = int(str[2])
y2 = int(str[3])
result = (x1-y1)*(x1-y1) + (x2-y2)*(x2-y2)
result = math.sqrt(result) if result != 0 else 0
print('%.6f'%result) |
s457552158 | p02379 | u748921161 | 1509180074 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | import math
str = input().split(' ')
x1 = int(str[0])
x2 = int(str[1])
y1 = int(str[2])
y2 = int(str[3])
result = (x1-y1)*(x1-y1) + (x2-y2)*(x2-y2)
result = math.sqrt(result) if result != 0 else 0
print('%.6f'%result) |
s434734232 | p02379 | u855694108 | 1510044363 | Python | Python3 | py | Runtime Error | 0 | 0 | 204 | import math
def main():
x1, y1, x2, y2 = map(int, input().split())
b = abs(x2 - x1)
h = abs(y2 - y1)
d = math.sqrt(b ** 2 + h ** 2)
print(d)
if __name__ == "__main__":
main() |
s139345309 | p02379 | u855694108 | 1510044626 | Python | Python3 | py | Runtime Error | 0 | 0 | 218 | import math
def main():
x1, y1, x2, y2 = map(int, input().split())
b = abs(x2 - x1)
h = abs(y2 - y1)
d = math.sqrt(b ** 2 + h ** 2)
print("{0:.8f}".format(d))
if __name__ == "__main__":
main() |
s842509235 | p02379 | u518939641 | 1510403175 | Python | Python3 | py | Runtime Error | 0 | 0 | 67 | a,b,c,d=list(map(int,input().split))
print(((b-a)**2+(c-d)**2)**.5) |
s601181762 | p02379 | u518939641 | 1510403200 | Python | Python3 | py | Runtime Error | 0 | 0 | 69 | a,b,c,d=list(map(int,input().split()))
print(((b-a)**2+(c-d)**2)**.5) |
s470158053 | p02379 | u518939641 | 1510403230 | Python | Python3 | py | Runtime Error | 0 | 0 | 69 | a,b,c,d=list(map(int,input().split()))
print(((c-a)**2+(b-d)**2)**.5) |
s706511660 | p02379 | u776758454 | 1510671390 | Python | Python3 | py | Runtime Error | 0 | 0 | 138 | from math import sqrt
def main():
x1, y1, x2, y2 = map(int, input().split())
print(sqrt(abs(x2-x1)**2 + abs(y2-y1)**2))
main() |
s620101820 | p02379 | u747709646 | 1510751713 | Python | Python3 | py | Runtime Error | 0 | 0 | 99 | import math
x1,y1,x2,y2 = map(int, input().split())
print(math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2))) |
s190651607 | p02379 | u617472286 | 1510837395 | Python | Python3 | py | Runtime Error | 0 | 0 | 135 | import math
x1, y1, x2, y2 = [int(s) for s in input().split()]
print(math.sqrt((math.fabs(x1 - x2) ** 2) + (math.fabs(y1 - y2) ** 2))) |
s916428578 | p02379 | u488038316 | 1511493668 | Python | Python3 | py | Runtime Error | 0 | 0 | 183 | # -*-coding:utf-8
import math
def main():
x1, y1, x2, y2 = map(int, input().split())
print(math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)))
if __name__ == '__main__':
main() |
s416051312 | p02379 | u298999032 | 1511939364 | Python | Python3 | py | Runtime Error | 0 | 0 | 87 | x1,y1,x2,y2=map(int,input().split())
print(float((abs(x1-x2)**2)+abs(y1-y2)**2)**(1/2)) |
s951924169 | p02379 | u605879293 | 1511949623 | Python | Python3 | py | Runtime Error | 0 | 0 | 98 | from math import sqrt
a, b, c, d = map(int, input().split())
print(sqrt((c - a)**2 + (d - b)**2)) |
s522298760 | p02379 | u605879293 | 1511949824 | Python | Python3 | py | Runtime Error | 0 | 0 | 75 | a, b, c, d = map(int, input().split())
print(pow((c-a)**2 + (d-b)**2, 0.5)) |
s795926071 | p02379 | u150984829 | 1513302452 | Python | Python3 | py | Runtime Error | 0 | 0 | 64 | a,b,c,d=map(int,input().split())
print(((a-c)**2+(b-d)**2)**0.5) |
s431976788 | p02379 | u150984829 | 1513302529 | Python | Python3 | py | Runtime Error | 0 | 0 | 64 | a,b,c,d=map(int,input().split())
print(((a-c)**2+(b-d)**2)**0.5) |
s936068298 | p02379 | u150984829 | 1513302620 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | a=map(float,input().split())
print(((a[0]-a[2])**2+(a[1]-a[3])**2)**0.5) |
s066346047 | p02379 | u406002631 | 1514027583 | Python | Python3 | py | Runtime Error | 0 | 0 | 182 | import math
l = input().split()
x1 = int(l[0])
y1 = int(l[1])
x2 = int(l[2])
y2 = int(l[3])
a = pow((x2 - x1), 2) + pow((y2 - y1), 2)
ans = math.sqrt(a)
print("{0:.8f}".format(ans)) |
s750407657 | p02379 | u585035894 | 1514296324 | Python | Python3 | py | Runtime Error | 0 | 0 | 92 | o,p,q,r = [int(i) for i in input().split()]
print(format(((q-o)**2+(r-p)**2)**(1/2), '.8f')) |
s113352959 | p02379 | u017523606 | 1515037047 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | x1,y1,x2,y2 = map(int,input().split())
distance = ( (x1 - x2)**2 + (y1 - y2)**2 )**(1/2)
print('{}'.format(distance))
|
s611035481 | p02379 | u839008951 | 1515824341 | Python | Python3 | py | Runtime Error | 0 | 0 | 139 | import math
x1, y1, x2, y2 = map(int, input().split())
print("{a:5f}".format(a=math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))))
|
s750322925 | p02379 | u839008951 | 1515824460 | Python | Python3 | py | Runtime Error | 0 | 0 | 144 | import math
x1, y1, x2, y2 = map(int, input().split())
print("{a:5f}".format(
a=math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))))
|
s360094773 | p02379 | u227984374 | 1516249334 | Python | Python3 | py | Runtime Error | 0 | 0 | 103 | import math
x1, y1, x2, y2 = map(int, input().split())
z = math.sqrt((x1-x2)**2 + (y1-y2)**2)
print(z)
|
s788331894 | p02379 | u177808190 | 1517246165 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | import math
def hoge(a):
return a * a
x1, y1, x2, y2 = map(int, input().split())
print (math.sqrt(hoge(math.fabs(x1-x2)) + hoge(math.fabs(y1-y2))))
|
s097922705 | p02379 | u177808190 | 1517246192 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | import math
def hoge(a):
return a * a
x1, y1, x2, y2 = map(int, input().split())
print (math.sqrt(hoge(math.fabs(x1-x2)) + hoge(math.fabs(y1-y2))))
|
s749191588 | p02379 | u146752763 | 1517249816 | Python | Python | py | Runtime Error | 0 | 0 | 196 | # coding:utf-8
import math
array = map(int,raw_input().split())
x1 = array[0]
y1 = array[1]
x2 = array[2]
y2 = array[3]
answer = math.sqrt(math.pow(x2 - x1,2) + math.pow(y2 - y1,2))
print answer
|
s047055327 | p02379 | u088372268 | 1517360839 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | data = list(map(int, input().split()))
print(((data[2]-data[0])**2+(data[3]-data[1])**2)**0.5)
|
s083674599 | p02379 | u088372268 | 1517360908 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | data = list(map(int, input().split()))
print(((data[2]-data[0])**2+(data[3]-data[1])**2)**0.5)
|
s068681865 | p02379 | u088372268 | 1517361630 | Python | Python3 | py | Runtime Error | 0 | 0 | 113 | data = list(map(int, input().split()))
print("{:.8f}".format(((data[2]-data[0])**2+(data[3]-data[1])**2)**0.5))
|
s838951139 | p02379 | u179070318 | 1517819889 | Python | Python3 | py | Runtime Error | 0 | 0 | 87 | x1,y1,x2,y2 = [int(x) for x in input().split()]
print(((x1-x2)**2+(y1-y2)**2)**(1/2))
|
s953628035 | p02379 | u179070318 | 1517819996 | Python | Python3 | py | Runtime Error | 0 | 0 | 87 | x1,y1,x2,y2 = [int(x) for x in input().split()]
print(((x1-x2)**2+(y1-y2)**2)**(1/2))
|
s598731283 | p02379 | u294922877 | 1518676978 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | import math
def distance(a, b):
return float('{:.9}'.format(math.sqrt((b[0] - a[0])**2 + (b[1] - a[1])**2)))
if __name__ == '__main__':
x1, y1, x2, y2 = map(int, input().split())
print(distance((x1, y1), (x2, y2)))
|
s882350278 | p02379 | u294922877 | 1518677087 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | import math
def distance(a, b):
return float('{:.9}'.format(math.sqrt((b[0] - a[0])**2 + (b[1] - a[1])**2)))
if __name__ == '__main__':
x1, y1, x2, y2 = map(int, input().split())
print(distance((x1, y1), (x2, y2)))
|
s283551731 | p02379 | u780025254 | 1519272255 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | import math
x1, y1, x2, y2 = map(int, input().split())
print("{:.8f}".format(math.sqrt((x2-x1)**2 + (y2-y1)**2)))
|
s713020318 | p02379 | u780025254 | 1519272452 | Python | Python3 | py | Runtime Error | 0 | 0 | 97 | x1, y1, x2, y2 = map(float, input().split())
print("{:4f}".format((x2-x1)**2 + (y2-y1)**2)**0.5)
|
s513043827 | p02379 | u613534067 | 1520332674 | Python | Python3 | py | Runtime Error | 0 | 0 | 102 | x1, y1, x2, y2 = map(float, input().split())
print("{0:f}".format(sqrt((x1-x2)**2.0 + (y1-y2)**2.0)))
|
s055190076 | p02379 | u508054630 | 1520541302 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | import numpy as np
x = list(map(float, input().split(' ')))
ans = np.sqrt(pow(x[0]-x[2], 2) + pow(x[1]-x[3], 2))
print("{0:.8f}".format(ans))
|
s792153449 | p02379 | u436259757 | 1520589172 | Python | Python3 | py | Runtime Error | 0 | 0 | 159 | import math
val = str(input()).split()
numList = list(map(int, list(val)))
print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
|
s531950533 | p02379 | u436259757 | 1520589882 | Python | Python3 | py | Runtime Error | 0 | 0 | 159 | import math
val = str(input()).split()
numList = list(map(int, list(val)))
print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
|
s173053291 | p02379 | u138546245 | 1520998989 | Python | Python3 | py | Runtime Error | 0 | 0 | 421 | import math
def distance(p1, p2):
"""returns the distance between p1 and p2
>>> d = distance((0, 0), (1, 1))
>>> print("{:.5f}".format(d))
1.41421
"""
(x1, y1) = p1
(x2, y2) = p2
return math.sqrt((x2-x1)**2 + (y2-y1)**2)
def run():
x1, y1, x2, y2 = [int(i) for i in input().split()]
print("{:.5f}".format(distance((x1, y1), (x2, y2))))
if __name__ == '__main__':
run()
|
s171500592 | p02379 | u138546245 | 1520999282 | Python | Python3 | py | Runtime Error | 0 | 0 | 447 | #!/usr/bin/env python3
import math
def distance(p1, p2):
"""returns the distance between p1 and p2
>>> d = distance((0, 0), (1, 1))
>>> print("{0:.5f}".format(d))
1.41421
"""
(x1, y1) = p1
(x2, y2) = p2
return math.sqrt((x2-x1)**2 + (y2-y1)**2)
def run():
x1, y1, x2, y2 = [int(i) for i in input().split()]
print("{0:.5f}".format(distance((x1, y1), (x2, y2))))
if __name__ == '__main__':
run()
|
s344298868 | p02379 | u138546245 | 1520999506 | Python | Python3 | py | Runtime Error | 0 | 0 | 411 | def distance(p1, p2):
"""returns the distance between p1 and p2
>>> d = distance((0, 0), (1, 1))
>>> print("{0:.5f}".format(d))
1.41421
"""
(x1, y1) = p1
(x2, y2) = p2
return math.sqrt((x2-x1)**2 + (y2-y1)**2)
def run():
x1, y1, x2, y2 = [float(i) for i in input().split()]
print("{0:.5f}".format(distance((x1, y1), (x2, y2))))
if __name__ == '__main__':
run()
|
s065552748 | p02379 | u352203480 | 1521114035 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))
|
s288868931 | p02379 | u352203480 | 1521114418 | Python | Python3 | py | Runtime Error | 0 | 0 | 120 | from math import sort
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))
|
s239473300 | p02379 | u444576298 | 1521457716 | Python | Python3 | py | Runtime Error | 0 | 0 | 113 | #coding: utf-8
import math
x1, y1, x2, y2 = (int(i) for i in input().split())
print(math.sqrt((x2-x1)+(y2-y1)))
|
s673259981 | p02379 | u027874809 | 1523243476 | Python | Python3 | py | Runtime Error | 0 | 0 | 178 | import numpy
numlist = list(map(int, input().split()))
a = numpy.array([numlist[0], numlist[1]])
b = numpy.array([numlist[2], numlist[3]])
u = b - a
print(numpy.linalg.norm(u))
|
s803798151 | p02379 | u027874809 | 1523243553 | Python | Python3 | py | Runtime Error | 0 | 0 | 180 | import numpy
numlist = list(map(float, input().split()))
a = numpy.array([numlist[0], numlist[1]])
b = numpy.array([numlist[2], numlist[3]])
u = b - a
print(numpy.linalg.norm(u))
|
s725130054 | p02379 | u095590628 | 1523837930 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | import math
x1,y1,x2,y2 = tuple(int(n) for n in input().split())
D = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print("{:.8f}".format(D))
|
s934175607 | p02379 | u328199937 | 1524325054 | Python | Python3 | py | Runtime Error | 0 | 0 | 129 | import math
x1, y1, x2, y2 = map(int, input().split())
X = x1 - x2
Y = y1 - y2
print('{:.5f}'.format(math.sqrt(X * X + Y * Y)))
|
s370202584 | p02379 | u328199937 | 1524325067 | Python | Python3 | py | Runtime Error | 0 | 0 | 129 | import math
x1, y1, x2, y2 = map(int, input().split())
X = x1 - x2
Y = y1 - y2
print('{:.5f}'.format(math.sqrt(X * X + Y * Y)))
|
s871214114 | p02379 | u682153677 | 1524373438 | Python | Python3 | py | Runtime Error | 0 | 0 | 155 | # -*- coding: utf-8 -*-
import math
x1, y1, x2, y2 = map(int, input().split())
dis = math.sqrt((x1 + x2) * (x1 + x2) + (y1 + y2) * (y1 + y2))
print(dis)
|
s041909652 | p02379 | u126478680 | 1524684546 | Python | Python3 | py | Runtime Error | 0 | 0 | 149 | #! python3
# distance.py
import math
x1, y1, x2, y2 = [int(x) for x in input().split(' ')]
print('%.5f'%math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)))
|
s015763982 | p02379 | u876060624 | 1525092024 | Python | Python3 | py | Runtime Error | 0 | 0 | 89 | import math
a,b,c,d = map(int,input().split())
print(math.sqrt(((c-a)**2) + ((d-b)**2)))
|
s779839037 | p02379 | u806005289 | 1525590903 | Python | Python3 | py | Runtime Error | 0 | 0 | 138 | import math
l=input().split()
x1=int(l[0])
y1=int(l[1])
x2=int(l[2])
y2=int(l[3])
A=math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
print(A)
|
s868998724 | p02379 | u843169619 | 1525903398 | Python | Python3 | py | Runtime Error | 0 | 0 | 193 | import math
def distance():
x1,x2,x3,x4 = map(int, input().split())
n = (x3 - x1)**2 + (x4 - x2)**2
ans = math.sqrt(n)
print(ans)
if __name__ == '__main__':
distance()
|
s177486875 | p02379 | u843169619 | 1525903670 | Python | Python3 | py | Runtime Error | 0 | 0 | 200 | import numpy as np
def distance():
x1,x2,x3,x4 = map(float, input().split())
n = (x3 - x1)**2 + (x4 - x2)**2
ans = np.sqrt(n)
print(ans)
if __name__ == '__main__':
distance()
|
s691940569 | p02379 | u843169619 | 1525903778 | Python | Python3 | py | Runtime Error | 0 | 0 | 128 | import numpy as np
x1,x2,x3,x4 = map(float, input().split())
n = (x3 - x1)**2 + (x4 - x2)**2
ans = np.sqrt(n)
print(ans)
|
s905905525 | p02379 | u843169619 | 1525903966 | Python | Python3 | py | Runtime Error | 0 | 0 | 119 | import numpy
x1,x2,x3,x4 = map(float, input().split())
n = (x3 - x1)**2 + (x4 - x2)**2
ans = numpy.sqrt(n)
print(ans)
|
s240808744 | p02379 | u986478725 | 1526021234 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | import math
def floatinput():
a = input().split()
for i in range(len(a)):
a[i] = float(a[i])
return a
def main():
a = numinput()
x1 = a[0]; y1 = a[1]; x2 = a[2]; y2 = a[3]
print(math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
if __name__ == "__main__":
main()
|
s795285355 | p02379 | u986478725 | 1526021262 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | import math
def floatinput():
a = input().split()
for i in range(len(a)):
a[i] = float(a[i])
return a
def main():
a = numinput()
x1 = a[0]; y1 = a[1]; x2 = a[2]; y2 = a[3]
print(math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2))
if __name__ == "__main__":
main()
|
s489370816 | p02379 | u908651435 | 1526446225 | Python | Python3 | py | Runtime Error | 0 | 0 | 107 | from math import sqrt
x1,x2,y1,y2=map(int, print().split())
a=abs(x1-y1)
b=abs(x2-y2)
s=sqrt(a+b)
print(s)
|
s213411495 | p02379 | u908651435 | 1526446262 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | from math import sqrt
x1,x2,y1,y2=map(double, print().split())
a=abs(x1-y1)
b=abs(x2-y2)
s=sqrt(a+b)
print(s)
|
s037987316 | p02379 | u908651435 | 1526446301 | Python | Python3 | py | Runtime Error | 0 | 0 | 109 | from math import sqrt
x1,x2,y1,y2=map(float, print().split())
a=abs(x1-y1)
b=abs(x2-y2)
s=sqrt(a+b)
print(s)
|
s032242967 | p02379 | u313089641 | 1526489839 | Python | Python3 | py | Runtime Error | 0 | 0 | 104 | import math
x1, y1, x2, y2 = map(int, input().split())
print(math.sqrt(abs(x2-x1)**2 + abs(y2-y1)**2))
|
s364792506 | p02379 | u940150266 | 1527812640 | Python | Python3 | py | Runtime Error | 0 | 0 | 122 | import math
a, b, c, d = map(int, input().split())
s1 = (a - c) * (a - c)
s2 = (b - d) * (b - d)
print(math.sqrt(s1+s2))
|
s370456749 | p02379 | u940150266 | 1527812796 | Python | Python3 | py | Runtime Error | 0 | 0 | 129 | import math
a, b, c, d = map(int, input().split())
s1 = (a - c) * (a - c)
s2 = (b - d) * (b - d)
print("%.6f"%math.sqrt(s1+s2))
|
s723696434 | p02379 | u995990363 | 1528368678 | Python | Python3 | py | Runtime Error | 0 | 0 | 98 | import math
x1, y1, x2, y2 = map(int, input().split())
print(math.sqrt((y2-y1)**2 + (x2-x1)**2))
|
s860688463 | p02379 | u995990363 | 1528368770 | Python | Python3 | py | Runtime Error | 0 | 0 | 96 | import math
x1, y1, x2, y2 = map(int, input().split())
print(((y2-y1)**2 + (x2-x1)**2)**(1/2))
|
s427210900 | p02379 | u995990363 | 1528368824 | Python | Python3 | py | Runtime Error | 0 | 0 | 84 | x1, y1, x2, y2 = map(int, input().split())
print(((y2-y1)**2 + (x2-x1)**2)**(1/2))
|
s955786340 | p02379 | u922112509 | 1529402139 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | # Distance
points = [int(i) for i in input().rstrip().split()]
a = [points[0], points[1]]
b = [points[2], points[3]]
distanceSquare = (a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2
distance = distanceSquare ** 0.5
print(distance)
|
s940421141 | p02379 | u123669391 | 1530680826 | Python | Python3 | py | Runtime Error | 0 | 0 | 111 | import math
x1, y1, x2, y2 = map(int, input().split())
r = math.sqrt((x1 - x2) **2 + (y1 - y2) **2)
print(r)
|
s296930855 | p02379 | u912237403 | 1371068283 | Python | Python | py | Runtime Error | 0 | 0 | 167 | import sys
for line in sys.stdin:
x1, y1, x2, y2 = line.strip('\n')
x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
print ((x1-x2)**2+(y1-y2)**2)**0.5 |
s661362978 | p02379 | u912237403 | 1371068348 | Python | Python | py | Runtime Error | 0 | 0 | 175 | import sys
for line in sys.stdin:
x1, y1, x2, y2 = line.strip('\n')
x1, y1, x2, y2 = float(x1), float(y1), float(x2), float(y2)
print ((x1-x2)**2+(y1-y2)**2)**0.5 |
s952541117 | p02379 | u912237403 | 1371068466 | Python | Python | py | Runtime Error | 20 | 4288 | 183 | import sys
for line in sys.stdin:
x1, y1, x2, y2 = line.strip('\n').split()
x1, y1, x2, y2 = float(x1), float(y1), float(x2), float(y2)
print ((x1-x2)**2+(y1-y2)**2)**0.5 |
s452180364 | p02379 | u140201022 | 1381758473 | Python | Python | py | Runtime Error | 0 | 0 | 103 | import math
n = map(int, raw_input().split())
ans=math.sqrt((n[0]-n[2])**2 + (n[1]-n[3])**2)
print ans |
s912712906 | p02379 | u140201022 | 1381758784 | Python | Python | py | Runtime Error | 0 | 0 | 74 | (n,m,o,p) = map(int, raw_input().split())
print ((n-o)**2 + (m-p)**2)**0.5 |
s653278643 | p02379 | u870370075 | 1389456636 | Python | Python | py | Runtime Error | 0 | 0 | 132 | import math
inputlist=map(int,raw_input().split(","))
print math.sqrt((inputlist[0]-inputlist[1])**2-(inputlist[2]-inputlist[3])**2) |
s468556199 | p02379 | u870370075 | 1389456750 | Python | Python | py | Runtime Error | 0 | 0 | 130 | import math
inputlist=map(int,raw_input().split()))
print math.sqrt((inputlist[0]-inputlist[2])**2+(inputlist[1]-inputlist[3])**2) |
s814660804 | p02379 | u870370075 | 1389456811 | Python | Python | py | Runtime Error | 0 | 0 | 129 | import math
inputlist=map(int,raw_input().split())
print math.sqrt((inputlist[0]-inputlist[2])**2+(inputlist[1]-inputlist[3])**2) |
s014561999 | p02379 | u870370075 | 1389456892 | Python | Python | py | Runtime Error | 0 | 0 | 117 | inputlist=map(int,raw_input().split())
print math.sqrt((inputlist[0]-inputlist[2])**2+(inputlist[1]-inputlist[3])**2) |
s904687406 | p02379 | u633068244 | 1393334780 | Python | Python | py | Runtime Error | 0 | 0 | 98 | import math
x1, y1, x2, y2 = map(float, raw_input().split())
print sqrt((x2-x1)**2 + (y2-y1)**2) |
s984090933 | p02379 | u633068244 | 1393334819 | Python | Python | py | Runtime Error | 0 | 0 | 86 | import math
x1, y1, x2, y2 = raw_input().split()
print sqrt((x2-x1)**2 + (y2-y1)**2) |
s678360434 | p02379 | u633068244 | 1393334857 | Python | Python | py | Runtime Error | 0 | 0 | 93 | import math
x1, y1, x2, y2 = float(raw_input().split())
print sqrt((x2-x1)**2 + (y2-y1)**2) |
s508404043 | p02379 | u633068244 | 1393334912 | Python | Python | py | Runtime Error | 0 | 0 | 146 | import math
x1, y1, x2, y2 = raw_input().split()
x1 = float(x1)
x2 = float(x2)
y1 = float(y1)
y2 = float(y2)
print sqrt((x2-x1)**2 + (y2-y1)**2) |
s287255564 | p02379 | u633068244 | 1393335042 | Python | Python | py | Runtime Error | 0 | 0 | 117 | import math.py
x1, y1, x2, y2 = raw_input().split()
print sqrt((float(x2)-float(x1))**2 + (float(y2)-float(y1))**2) |
s919951720 | p02379 | u633068244 | 1393335117 | Python | Python | py | Runtime Error | 0 | 0 | 118 | import math
x1, y1, x2, y2 = map(raw_input().split())
print sqrt((float(x2)-float(x1))**2 + (float(y2)-float(y1))**2) |
s777927757 | p02380 | u281808376 | 1540515929 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | lst=input().split()
lst=list(map(lambda i:int(i),lst))
a,b,C=lst[0],lst[1],lst[2]
S=(1/2)*a*b*math.sin(math.radians(C))
|
s353043383 | p02380 | u805716376 | 1556728546 | Python | Python3 | py | Runtime Error | 0 | 0 | 180 | from math import sin, cos, pi, sqrt
a, b, c = map(int, input().split())
s = a*b*sin(pi*c/180)/2
c = sqrt(a**2 + b**2 -a*b*2*cos(pi*c/180))
h = 2*S/a
print(s)
print(a+b+c)
print(h)
|
s770637875 | p02380 | u025362139 | 1556841813 | Python | Python3 | py | Runtime Error | 0 | 0 | 253 | #coding: UTF-8
import math
A, B, DEGREE = list(map(int, input().split()))
RADIAN = math.radians(DEGREE)
C = sqrt(pow(A, 2)*pow(B, 2) - 2*A*B*math.cos(RADIAN))
S = A*B*math.sin(RADIAN)/2
H = A*math.sin(RADIAN)
print("%.10f %.10f %.10f"%(S, A+B+C, h))
|
s655296330 | p02380 | u535719732 | 1559308579 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | from math import *
data = list(map(int,input().split()))
print("%f %f %f" %(b*cos(radians(c))*a/2,a+b+b*sin(radians(c)),b*sin(radians(c))))
|
s940495579 | p02380 | u535719732 | 1559308616 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | from math import *
a,b,c = int(input().split())
print("%f %f %f" %(b*cos(radians(c))*a/2,a+b+b*sin(radians(c)),b*sin(radians(c))))
|
s494499717 | p02380 | u535719732 | 1559309028 | Python | Python3 | py | Runtime Error | 0 | 0 | 141 | from math import *
a,b,c = map(int,input().split())
c = radians(c)
S = a*b*sin(c)/2
print("%f %f %f" %(S,sqrt(a*a+b*b-2*a*b*cos(c),2*S/a )))
|
s662358586 | p02380 | u535719732 | 1559309039 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | from math import *
a,b,c = map(int,input().split())
c = radians(c)
S = a*b*sin(c)/2
print("%f %f %f" %(S,sqrt(a*a+b*b-2*a*b*cos(c)),2*S/a )))
|
s228570054 | p02380 | u615353970 | 1410673362 | Python | Python | py | Runtime Error | 0 | 0 | 210 | import math
a,b,c=map(float,raw_input().split())
c = c / 180 * math.pi
print "%.10f" % float(a*b*math.sin(c)/2)
print "%.10f" % float(a + b + math.sqrt(a**2 + b**2)*cos(c))
print "%.10f" % float(b*math.sin(c)) |
s037698247 | p02380 | u140201022 | 1413135044 | Python | Python | py | Runtime Error | 0 | 0 | 138 | a,b,C=map(float,raw_input().split())
rad=math.radinas(C)
c=(a**2+b**2-2*a*b*math.cos(rad))
h=b*math.sin(c)
print h*a/2
print a+b+c
print h |
s392589527 | p02380 | u140201022 | 1413135063 | Python | Python | py | Runtime Error | 0 | 0 | 150 | import math
a,b,C=map(float,raw_input().split())
rad=math.radinas(C)
c=(a**2+b**2-2*a*b*math.cos(rad))
h=b*math.sin(c)
print h*a/2
print a+b+c
print h |
s189415559 | p02380 | u140201022 | 1413135970 | Python | Python | py | Runtime Error | 0 | 0 | 145 | a,b,C=map(float,raw_input().split())
rad=math.radians(C)
c=(a**2+b**2-2*a*b*math.cos(rad))**0.5
h=b*math.sin(rad)
print h*a/2
print a+b+c
print h |
s323077086 | p02380 | u949338836 | 1428963997 | Python | Python3 | py | Runtime Error | 0 | 0 | 245 | #coding:utf-8
#1_10_B 2015.4.14
import math
a,b,C = map(int,input().split())
C = math.radian(C)
h = b * math.sin(C)
S = a * h / 2
L = a + b + math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(C))
print('{:.10f}\n{:.10f}\n{:.10f}'.format(S,L,h)) |
s518948608 | p02380 | u778333573 | 1463047114 | Python | Python | py | Runtime Error | 0 | 0 | 230 | import math
from math import radians
from cmath import sqrt
a,b,c = map(int, raw_input().split)
s = (a * b * math.sin(radians(c))) /2
c = sqrt(pow(a,2) + pow(b,2) - 2*a*b*math.cos(radians(c)))
print s
print a + b +c
print s*2 /a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.