Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02677
import math A, B, H, M = map(int, input().split()) degree = abs((H * 60 + M) / 2 - M * 6) d = A**2 + B**2 - 2 * A * B * math.cos(math.radians(degree)) ans = d**0.5 print(ans, degree)
import math A, B, H, M = map(int, input().split()) degree = abs((H * 60 + M) / 2 - M * 6) d = A**2 + B**2 - 2 * A * B * math.cos(math.radians(degree)) ans = d**0.5 print(ans)
[ "call.arguments.change" ]
398,014
398,015
u811967730
python
p02677
import math A, B, H, M = map(int, input().split()) degree = abs((H * 60 + M) / 2 - M * 6) % 180 d = A**2 + B**2 - 2 * A * B * math.cos(math.radians(degree)) ans = d**0.5 print(ans)
import math A, B, H, M = map(int, input().split()) degree = abs((H * 60 + M) / 2 - M * 6) d = A**2 + B**2 - 2 * A * B * math.cos(math.radians(degree)) ans = d**0.5 print(ans)
[ "expression.operation.binary.remove" ]
398,016
398,015
u811967730
python
p02677
import math as m A,B,H,M = map(int,input().split()) hour_angle =(30*H+0.5*M) minute_angle =(6*M) hour_X = float('{:.8f}'.format(m.sin(m.radians(hour_angle))))*A hour_Y = float('{:.8f}'.format(m.cos(m.radians(hour_angle))))*A minute_X = float('{:.8f}'.format(m.sin(m.radians(minute_angle))))*B minute_Y = float('{:.8f}'.f...
import math as m A,B,H,M = map(int,input().split()) hour_angle =(30*H+0.5*M) minute_angle =(6*M) hour_X = float('{:.12f}'.format(m.sin(m.radians(hour_angle))))*A hour_Y = float('{:.12f}'.format(m.cos(m.radians(hour_angle))))*A minute_X = float('{:.12f}'.format(m.sin(m.radians(minute_angle))))*B minute_Y = float('{:.12f...
[ "literal.string.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,022
398,023
u802234211
python
p02677
import math A, B, H, M = map(float, input().split()) long_deg = M*60 short_deg = M/2+H*30 rad = (long_deg - short_deg)*2*math.pi/360 print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
import math A, B, H, M = map(float, input().split()) long_deg = M*6 short_deg = M/2+H*30 rad = (long_deg - short_deg)*2*math.pi/360 print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
398,024
398,025
u496148227
python
p02677
import math A, B, H, M = map(int, input().split()) long_deg = M*60 short_deg = M/2+H*30 rad = (long_deg - short_deg)*2*math.pi/360 print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
import math A, B, H, M = map(float, input().split()) long_deg = M*6 short_deg = M/2+H*30 rad = (long_deg - short_deg)*2*math.pi/360 print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
[ "assignment.value.change", "identifier.change", "call.arguments.change", "literal.number.integer.change", "expression.operation.binary.change" ]
398,026
398,025
u496148227
python
p02677
import math A, B, H, M = map(int, input().split()) long_deg = M*60 short_deg = M/2+H*30 rad = (long_deg - short_deg)*2*math.pi/360 print(math.sqrt(A**2 + B**2 - 2*A*B*abs(math.cos(rad))))
import math A, B, H, M = map(float, input().split()) long_deg = M*6 short_deg = M/2+H*30 rad = (long_deg - short_deg)*2*math.pi/360 print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
[ "assignment.value.change", "identifier.change", "call.arguments.change", "literal.number.integer.change", "expression.operation.binary.change", "call.remove" ]
398,027
398,025
u496148227
python
p02677
A,B,H,M = map(float, input().split()) pi = math.pi Ak = 360*H/12+360/12*M/60 Bk = 360*M/60 Ak = Ak/180*pi Bk = Bk/180*pi # print(Ak) # print(Bk) ans = A*A+B*B-2*A*B*math.cos(Ak-Bk) print(math.sqrt(ans))
import math A,B,H,M = map(float, input().split()) pi = math.pi Ak = 360*H/12+360/12*M/60 Bk = 360*M/60 Ak = Ak/180*pi Bk = Bk/180*pi # print(Ak) # print(Bk) ans = A*A+B*B-2*A*B*math.cos(Ak-Bk) print(math.sqrt(ans))
[]
398,030
398,031
u477319617
python
p02677
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify import math import bisect import random from itertools import permutations, accumulate, combinations, product import sys import string from bisect import bisect_left, bisect_right from math import factorial, ceil, floor, co...
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify import math import bisect import random from itertools import permutations, accumulate, combinations, product import sys import string from bisect import bisect_left, bisect_right from math import factorial, ceil, floor, co...
[ "call.remove", "call.arguments.change" ]
398,036
398,037
u499381410
python
p02677
import sys input = sys.stdin.readline import math def main(): a,b,h,m = map(int, input().split()) x = abs((h*30+(m/2)) - m*6) if x == 0 or x== 360: print(abs(a-b)) elif x == 180: print(a+b) else: if x > 180: x -= 180 rad = math.radians(x) ans...
import sys input = sys.stdin.readline import math def main(): a,b,h,m = map(int, input().split()) x = abs((h*30+(m/2)) - m*6) if x == 0 or x== 360: print(abs(a-b)) elif x == 180: print(a+b) else: if x > 180: x = 360 - x rad = math.radians(x) ...
[ "assignment.add" ]
398,038
398,039
u227550284
python
p02677
import math PI = math.pi a, b, h, m = map(int, input().split()) rad = 2 * PI * (h / 12.0 + m / 60.0 / 12.0 - m / 60.0) ans = math.sqrt(a * a + b * b - a * b * math.cos(rad)) print(ans)
import math PI = math.pi a, b, h, m = map(int, input().split()) rad = 2 * PI * abs(h / 12.0 + m / 60.0 / 12.0 - m / 60.0) ans = math.sqrt(a * a + b * b - 2 * a * b * math.cos(rad)) print(ans)
[ "call.add" ]
398,048
398,049
u135331079
python
p02677
import math A,B,H,M = map(int, input().split()) A_angle = (H*60+M)*0.5 B_angle = M*0.6 #中心角度 angle = abs(A_angle - B_angle) #cos angle_rad = math.radians(angle) cos = math.cos(angle_rad) #余弦定理 ansans = A**2+B**2-2*A*B*cos ans = math.sqrt(ansans) print(ans)
import math A,B,H,M = map(int, input().split()) A_angle = (H*60+M)*0.5 B_angle = M*6 #中心角度 angle = abs(A_angle - B_angle) #cos angle_rad = math.radians(angle) cos = math.cos(angle_rad) #余弦定理 ansans = A**2+B**2-2*A*B*cos ans = math.sqrt(ansans) print(ans)
[ "assignment.value.change", "expression.operation.binary.change" ]
398,073
398,074
u117078923
python
p02677
import math a, b, h, m = map(int, input().split()) angle = min(abs(30 * h + 0.5 * m - 6 * m), 360 - abs(30 * h - 6 * m)) print(math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(angle))))
import math a, b, h, m = map(int, input().split()) angle = min(abs(30 * h + 0.5 * m - 6 * m), 360 - abs(30 * h + 0.5 * m - 6 * m)) print(math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(angle))))
[ "assignment.change" ]
398,079
398,080
u653837719
python
p02677
import math a,b,h,m = list(map(int,input().split())) #角度 hsita = 30 * h msita = 6 * m #位置 hx = math.cos(math.radians(hsita)) * a hy = math.sin(math.radians(hsita)) * a mx = math.cos(math.radians(msita)) * b my = math.sin(math.radians(msita)) * b #3heiho ans = math.sqrt(((hx - mx) ** 2) + ((hy-my)**2)) print(ans)
import math a,b,h,m = list(map(int,input().split())) #角度 hsita = 30 * h + 0.5*m msita = 6 * m #位置 hx = math.cos(math.radians(hsita)) * a hy = math.sin(math.radians(hsita)) * a mx = math.cos(math.radians(msita)) * b my = math.sin(math.radians(msita)) * b #3heiho ans = math.sqrt(((hx - mx) ** 2) + ((hy-my)**2)) prin...
[ "assignment.change" ]
398,083
398,084
u049679412
python
p02677
# Template 1.0 import sys, re from collections import deque, defaultdict, Counter, OrderedDict from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from heapq import heappush, heappop, heapify, nlargest, nsmallest def STR(): return list(input()) def INT(): return int(input()) def MAP(): return map(int, ...
# Template 1.0 import sys, re from collections import deque, defaultdict, Counter, OrderedDict from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from heapq import heappush, heappop, heapify, nlargest, nsmallest def STR(): return list(input()) def INT(): return int(input()) def MAP(): return map(int, ...
[ "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change" ]
398,089
398,090
u508972438
python
p02677
import math date0=input().rstrip().split(" ") A=int(date0[0]) B=int(date0[1]) H=int(date0[2]) M=int(date0[3]) P=(H+(M/60))*30 Q=M*6 if P>Q: R=P-Q else: R=Q-P if R>=180: R=R-180 print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(R))))
import math date0=input().rstrip().split(" ") A=int(date0[0]) B=int(date0[1]) H=int(date0[2]) M=int(date0[3]) P=(H+(M/60))*30 Q=M*6 if P>Q: R=P-Q else: R=Q-P if R>=180: R=360-R print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(R))))
[ "expression.operation.binary.remove" ]
398,094
398,095
u654517927
python
p02677
import math a,b,h,m = map(int,input().split()) x = 6 * m - 30 * h k = math.cos(math.radians(x)) c = a ** 2 + b ** 2 - 2 * a * b * k print(math.sqrt(c))
import math a,b,h,m = map(int,input().split()) x = 6 * m - 30 * h - m / 2 k = math.cos(math.radians(x)) c = a ** 2 + b ** 2 - 2 * a * b * k print(math.sqrt(c))
[ "assignment.change" ]
398,098
398,099
u635864321
python
p02677
import math a,b,h,m = map(int,input().split()) x = 6 * m - 15 * h k = math.cos(math.radians(x)) c = a ** 2 + b ** 2 - 2 * a * b * k print(math.sqrt(c))
import math a,b,h,m = map(int,input().split()) x = 6 * m - 30 * h - m / 2 k = math.cos(math.radians(x)) c = a ** 2 + b ** 2 - 2 * a * b * k print(math.sqrt(c))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
398,100
398,099
u635864321
python
p02677
import math a,b,h,m=map(int,input().split()) ang=6*m-30*h if ang<0: ang*=-1 ang=ang*math.pi/180 r=math.sqrt(a*a+b*b+2*a*b*math.cos(ang)) print(r)
import math a,b,h,m=map(int,input().split()) ang=6*m-30*h-m/2 if ang<0: ang*=-1 ang=ang*math.pi/180 #c=math.cos(ang) #print(c) r=math.sqrt(a*a+b*b-2*a*b*math.cos(ang)) print(r)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,108
398,109
u397080265
python
p02677
import math [a, b, h, m] = [int(x) for x in input().split(" ")] short = ((h) * 60 + m) / (12 * 60) * 360 long = (m) / (60) * 360 theta = abs(long - short) inte = math.cos(math.radians(theta)) print(math.sqrt(a ** 2 + b ** 2 + 2*a * b * inte))
import math [a, b, h, m] = [int(x) for x in input().split(" ")] short = ((h) * 60 + m) / (12 * 60) * 360 long = (m) / (60) * 360 theta = abs(long - short) inte = math.cos(math.radians(theta)) print(math.sqrt(a ** 2 + b ** 2- 2*a * b * inte))
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
398,110
398,111
u422414797
python
p02677
import math [a, b, h, m] = [int(x) for x in input().split(" ")] short = ((h) * 60 + m) / (12 * 60) * 360 long = (m) / (60) * 360 theta = abs(long - short) inte = math.cos(math.radians(theta)) print(math.sqrt(a ** 2 + b ** 2 + 2*a * b * abs(inte)))
import math [a, b, h, m] = [int(x) for x in input().split(" ")] short = ((h) * 60 + m) / (12 * 60) * 360 long = (m) / (60) * 360 theta = abs(long - short) inte = math.cos(math.radians(theta)) print(math.sqrt(a ** 2 + b ** 2- 2*a * b * inte))
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "call.remove" ]
398,112
398,111
u422414797
python
p02677
import math [a, b, h, m] = [int(x) for x in input().split(" ")] short = ((h) * 60 + m) / (12 * 60) * 360 long = (m) / (60) * 360 theta = abs(long - short) inte = math.cos(math.radians(theta)) print(math.sqrt(a ** 2 + b ** 2 + a * b * abs(inte)))
import math [a, b, h, m] = [int(x) for x in input().split(" ")] short = ((h) * 60 + m) / (12 * 60) * 360 long = (m) / (60) * 360 theta = abs(long - short) inte = math.cos(math.radians(theta)) print(math.sqrt(a ** 2 + b ** 2- 2*a * b * inte))
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "call.remove" ]
398,113
398,111
u422414797
python
p02677
import math as m [A, B, H, M] = list(map(int, input().split())) H_d = H * 30 M_d = M * 6 C = abs(H_d - M_d) if C >= 180: C = 360 - C cosC = m.cos(m.radians(C)) answer = (A ** 2 + B ** 2 - 2 * A * B * cosC) ** 0.5 print(answer)
import math as m [A, B, H, M] = list(map(int, input().split())) H_d = H * 30 + 0.5 * M M_d = M * 6 C = abs(H_d - M_d) if C >= 180: C = 360 - C cosC = m.cos(m.radians(C)) answer = (A ** 2 + B ** 2 - 2 * A * B * cosC) ** 0.5 print(answer)
[ "assignment.change" ]
398,114
398,115
u817692975
python
p02677
# C import math #A:短針,B:長針,H:短針の位置,M:長針の位置 A,B,H,M = map(int,input().split(' ')) rad = abs(H*30-M*6) rad = math.radians(min(rad,360-rad)) print('{:.20f}'.format((A**2 + B**2 - 2*A*B*math.cos(rad))**0.5))
# C import math #A:短針,B:長針,H:短針の位置,M:長針の位置 A,B,H,M = map(int,input().split(' ')) rad = abs((H*30+M/2)-M*6) rad = math.radians(min(rad,360-rad)) print('{:.20f}'.format((A**2 + B**2 - 2*A*B*math.cos(rad))**0.5))
[ "call.arguments.change" ]
398,118
398,119
u754046530
python
p02677
import math def abs(x): return x if x >= 0 else x < 0 -x a,b,h,m = (int(x) for x in input().split()) x = 30 * h + 0.5 * m y = 6 * m ang = abs(x - y) print(math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(ang))))
import math def abs(x): return x if x >= 0 else -x a,b,h,m = (int(x) for x in input().split()) x = 30 * h + 0.5 * m y = 6 * m ang = abs(x - y) print(math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(ang))))
[]
398,140
398,141
u411478442
python
p02677
import math a, b, h, m = map(int, input().split()) #c = (h/6 - m/360)*math.pi c = 11.0/360.0*(60*h+m)*pi x = math.sqrt(a * a + b * b - 2 * a * b * math.cos(c)) print(x) #double c = (h/6 - m/360)*pi; #x = sqrt(a * a + b * b - 2 * a * b * cos(c)); #cout << fixed << setprecision(15) << x << endl;
import math a, b, h, m = map(int, input().split()) #c = (h/6 - m/360)*math.pi c = 11.0/360.0*(60*h+m)*math.pi x = math.sqrt(a * a + b * b - 2 * a * b * math.cos(c)) print(x) #double c = (h/6 - m/360)*pi; #x = sqrt(a * a + b * b - 2 * a * b * cos(c)); #cout << fixed << setprecision(15) << x << endl;
[]
398,142
398,143
u330154866
python
p02677
import math # from itertools import permutations,combinations,combinations_with_replacement # from collections import deque,Counter # import re # from bisect import bisect_left # from heapq import heappush,heappop # from numba import njit # from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000) # from fractio...
import math # from itertools import permutations,combinations,combinations_with_replacement # from collections import deque,Counter # import re # from bisect import bisect_left # from heapq import heappush,heappop # from numba import njit # from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000) # from fractio...
[ "assignment.change" ]
398,148
398,149
u114641312
python
p02677
from math import sin,cos,pi def main(): #入力 readline=stdin.readline A,B,H,M=map(int,readline().split()) s=M*pi/30 t=(H/6)*pi+(M/360)*pi x_A=A*sin(t) y_A=A*cos(t) x_B=B*sin(s) y_B=B*cos(s) print(((x_A-x_B)**2+(y_A-y_B)**2)**0.5) if __name__=="__main__": main()
from sys import stdin from math import sin,cos,pi def main(): #入力 readline=stdin.readline A,B,H,M=map(int,readline().split()) s=M*pi/30 t=(H/6)*pi+(M/360)*pi x_A=A*sin(t) y_A=A*cos(t) x_B=B*sin(s) y_B=B*cos(s) print(((x_A-x_B)**2+(y_A-y_B)**2)**0.5) if __name__=="__main__...
[]
398,152
398,153
u079022693
python
p02677
#-*-coding:utf-8-*- import math def calculate_length(A,B,theta): radian=math.radians(theta) length=(A**2)+(B**2)-(2*A*B*math.cos(radian)) return math.sqrt(length) def main(): A,B,H,M = map(int,input().split()) thetaA=H*30+M*0.5 thetaB=M*6 if thetaA == thetaB: print(abs(thetaA-the...
#-*-coding:utf-8-*- import math def calculate_length(A,B,theta): radian=math.radians(theta) length=(A**2)+(B**2)-(2*A*B*math.cos(radian)) return math.sqrt(length) def main(): A,B,H,M = map(int,input().split()) thetaA=H*30+M*0.5 thetaB=M*6 if thetaA == thetaB: print(abs(A-B)) e...
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
398,158
398,159
u318427318
python
p02677
#-*-coding:utf-8-*- import math def calculate_length(A,B,theta): radian=math.radians(theta) length=(A**2)+(B**2)-(2*A*B*math.cos(radian)) return math.sqrt(length) def main(): A,B,H,M = map(int,input().split()) thetaA=H*30+M*0.5 thetaB=M*6 if thetaA == thetaB: print("0") else:...
#-*-coding:utf-8-*- import math def calculate_length(A,B,theta): radian=math.radians(theta) length=(A**2)+(B**2)-(2*A*B*math.cos(radian)) return math.sqrt(length) def main(): A,B,H,M = map(int,input().split()) thetaA=H*30+M*0.5 thetaB=M*6 if thetaA == thetaB: print(abs(A-B)) e...
[ "call.arguments.add" ]
398,160
398,159
u318427318
python
p02677
import math def main() : A, B, H, M = list(map(int, input().split())) theta = abs((H+ M/ 60)* 30- M* 6) print(theta) result = B**2 + A**2 - 2* B* A* math.cos(math.radians(theta)) result = math.sqrt(result) print('{:.020f}'.format(result)) if __name__ == "__main__": main()
import math def main() : A, B, H, M = list(map(int, input().split())) theta = abs((H+ M/ 60)* 30- M* 6) #print(theta) result = B**2 + A**2 - 2* B* A* math.cos(math.radians(theta)) result = math.sqrt(result) print('{:.020f}'.format(result)) if __name__ == "__main__": main()
[ "call.remove" ]
398,161
398,162
u307615746
python
p02677
import math a,b,h,m = map(int,input().split()) long = m/60*360 short = h*30+(m/60*30) kakudo = abs(long-short) if kakudo > 180: kakudo -= 180 ans = math.sqrt(a**2 + b**2 - (2*a*b*math.cos(math.radians(kakudo)))) print(ans)
import math a,b,h,m = map(int,input().split()) long = m/60*360 short = h*30+(m/60*30) kakudo = abs(long-short) if kakudo > 180: kakudo = 360-kakudo ans = math.sqrt(a**2 + b**2 - (2*a*b*math.cos(math.radians(kakudo)))) print(ans)
[ "assignment.add" ]
398,165
398,166
u482157295
python
p02677
import numpy as np import math from sys import stdin def get_result(data): A, B, H, M = data h_deg = (H + M/60) * 30.0 m_deg = M * 6.0 theta = math.radians(abs(m_deg-h_deg) % 180) # print(abs(m_deg-h_deg)) # print(abs(m_deg-h_deg) % 180) ans = np.sqrt(np.float128(A**2+B**2 - 2*A*B*math.cos...
import numpy as np import math from sys import stdin def get_result(data): A, B, H, M = data h_deg = (H + M/60.0) * 30.0 m_deg = M * 6.0 theta = math.radians(abs(m_deg-h_deg)) ans = np.sqrt(np.float128(A**2+B**2 - 2*A*B*math.cos(theta))) return ans if __name__ == '__main__': data = list(...
[ "assignment.value.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
398,180
398,181
u659302753
python
p02677
a,b,h,m = map(int,input().split()) import math h_pi = 30 * h + 0.5 * m m_pi = 6 * m theta =max(h_pi,m_pi) - min(h_pi,m_pi) ans = a**2 + b**2 -2 * a * b * math.cos(theta) print(math.sqrt(ans))
a,b,h,m = map(int,input().split()) import math h_pi = 30 * h + 0.5 * m m_pi = 6 * m theta =max(h_pi,m_pi) - min(h_pi,m_pi) ans = a**2 + b**2 -2 * a * b * math.cos(math.radians(theta)) print(math.sqrt(ans))
[ "call.add", "call.arguments.change" ]
398,182
398,183
u618373524
python
p02677
A,B,H,M = list(map(int,input().split())) import math x = abs((30*H + 30*M/60) -6*M) if x > 180: x = x - 180 c = A*A + B*B - (2*A*B*(math.cos(math.radians(x)))) print(c**0.5)
A,B,H,M = list(map(int,input().split())) import math x = abs((30*H + 30*M/60) -6*M) if x >= 180: x = 360-x c = A*A + B*B - (2*A*B*(math.cos(math.radians(x)))) print(c**0.5)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
398,195
398,196
u666771982
python
p02677
import numpy as np a,b,h,m=map(int, input().split()) min = h*60 + m rada = np.radians(90-min*0.5) acos = np.cos(rada) x1 = a * acos asin = np.sin(rada) y1 = a * asin radb = np.radians(90-m*6) bcos = np.cos(radb) x2 = b * bcos bsin = np.sin(radb) y2 = b * bsin A = np.array([x1, y1]) B = np.array([x2, y2]) u = B-A np....
import numpy as np a,b,h,m=map(int, input().split()) min = h*60 + m rada = np.radians(90-min*0.5) acos = np.cos(rada) x1 = a * acos asin = np.sin(rada) y1 = a * asin radb = np.radians(90-m*6) bcos = np.cos(radb) x2 = b * bcos bsin = np.sin(radb) y2 = b * bsin A = np.array([x1, y1]) B = np.array([x2, y2]) u = B-A pri...
[ "call.add", "call.arguments.change" ]
398,203
398,204
u516079286
python
p02677
import math A,B,H,M = map(int,input().split()) a = 30*H + 0.5*M b = M*6 if abs(a-b) > 180: ab = abs(a-b) else: ab = abs(360-a-b) ab1 = round(math.cos(math.radians(ab)),20) ans = round(math.sqrt(A**2 + B**2 - 2 * A* B*ab1),20) print(round(ans,20))
import math A,B,H,M = map(int,input().split()) a = 30*H + 0.5*M b = M*6 if abs(a-b) < 180: ab = abs(a-b) else: ab = 360 - abs(a-b) ab1 = round(math.cos(math.radians(ab)),20) ans = round(math.sqrt(A**2 + B**2 - 2 * A* B*ab1),20) print(round(ans,20))
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove", "call.add" ]
398,206
398,207
u096294926
python
p02677
import math A,B,H,M = map(int,input().split()) a = 30*H + 0.5*M b = M*6 if abs(a-b) < 180: ab = abs(a-b) else: ab = abs(360-a-b) ab1 = round(math.cos(math.radians(ab)),20) ans = round(math.sqrt(A**2 + B**2 - 2 * A* B*ab1),20) print(round(ans,10))
import math A,B,H,M = map(int,input().split()) a = 30*H + 0.5*M b = M*6 if abs(a-b) < 180: ab = abs(a-b) else: ab = 360 - abs(a-b) ab1 = round(math.cos(math.radians(ab)),20) ans = round(math.sqrt(A**2 + B**2 - 2 * A* B*ab1),20) print(round(ans,20))
[ "call.remove", "call.add", "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
398,208
398,207
u096294926
python
p02677
import sys import math sys.setrecursionlimit(10 ** 7) read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A, B, H, M = map(int, input().split()) AX = (30.0 * H + M) / 2.0 BX = M * 6.0 D = AX - BX ANS = A ** 2 + B ** 2 - 2 * B * A * math.cos(math.radians(D)) pr...
import sys import math sys.setrecursionlimit(10 ** 7) read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A, B, H, M = map(int, input().split()) AX = 30.0 * H + M / 2.0 BX = M * 6.0 D = AX - BX ANS = A ** 2 + B ** 2 - 2 * B * A * math.cos(math.radians(D)) prin...
[]
398,210
398,211
u593567568
python
p02677
import sys import math sys.setrecursionlimit(10 ** 7) read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A, B, H, M = map(int, input().split()) H = H % 12 X = H * 60 + M AX = X / 720.0 * 360 BX = M / 60.0 * 360 D = abs(AX - BX + (10 ** -6)) ANS = A ** 2 + B *...
import sys import math sys.setrecursionlimit(10 ** 7) read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A, B, H, M = map(int, input().split()) H = H % 12 X = H * 60 + M AX = X / 720.0 * 360 BX = M / 60.0 * 360 D = abs(AX - BX + (10 ** -12)) ANS = A ** 2 + B ...
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,212
398,213
u593567568
python
p02677
import math A, B, H, M = map(int, input().split()) short_v = 360 / (12*60) long_v = 360 / 60 short_arg = (short_v * (H * 60) + short_v * M) long_arg = long_v * M theta = math.radians(abs(short_arg-long_arg)%180) result_2 = A**2 + B**2 - 2*A*B*math.cos(theta) print(math.sqrt(result_2))
import math A, B, H, M = map(int, input().split()) short_v = 360 / (12*60) long_v = 360 / 60 short_arg = (short_v * (H * 60) + short_v * M) long_arg = long_v * M theta = math.radians(abs(short_arg-long_arg)) result_2 = A**2 + B**2 - 2*A*B*math.cos(theta) print(math.sqrt(result_2))
[ "expression.operation.binary.remove" ]
398,221
398,222
u226082503
python
p02677
import math A, B, H, M = map(int, input().split()) short_v = 360 / (12*60) long_v = 360 / 60 short_arg = (short_v * (H * 60) + short_v * M)%360 long_arg = long_v * M theta = math.radians(abs(short_arg-long_arg)%180) result_2 = A**2 + B**2 - 2*A*B*math.cos(theta) print(math.sqrt(result_2))
import math A, B, H, M = map(int, input().split()) short_v = 360 / (12*60) long_v = 360 / 60 short_arg = (short_v * (H * 60) + short_v * M) long_arg = long_v * M theta = math.radians(abs(short_arg-long_arg)) result_2 = A**2 + B**2 - 2*A*B*math.cos(theta) print(math.sqrt(result_2))
[ "expression.operation.binary.remove" ]
398,223
398,222
u226082503
python
p02677
import math def main(): # S = input() # N = int(input()) A,B,H,M = list(map(int, input().split(' '))) # print(S, W) A_zure = H / 12 * 360 B_zure = M / 60 * 360 A_zure += (15 / 60) * M theta = abs(B_zure - A_zure) theta = min(360-theta, theta) # print(A_zure, B_zu...
import math def main(): # S = input() # N = int(input()) A,B,H,M = list(map(int, input().split(' '))) # print(S, W) A_zure = H / 12 * 360 B_zure = M / 60 * 360 A_zure += (30 / 60) * M theta = abs(B_zure - A_zure) theta = min(360-theta, theta) # print(A_zure, B_zu...
[ "literal.number.integer.change", "expression.operation.binary.change" ]
398,234
398,235
u485716382
python
p02677
import math def main(): # S = input() # N = int(input()) A,B,H,M = list(map(int, input().split(' '))) # print(S, W) A_zure = H / 12 * 360 B_zure = M / 60 * 360 A_zure += 15 * M / 60 theta = abs(B_zure - A_zure) theta = min(360-theta, theta) # print(A_zure, B_zure...
import math def main(): # S = input() # N = int(input()) A,B,H,M = list(map(int, input().split(' '))) # print(S, W) A_zure = H / 12 * 360 B_zure = M / 60 * 360 A_zure += (30 / 60) * M theta = abs(B_zure - A_zure) theta = min(360-theta, theta) # print(A_zure, B_zu...
[ "expression.operation.binary.change", "expression.operation.binary.remove" ]
398,236
398,235
u485716382
python
p02677
import math s = input() S = s.split() A = int(S[0]) B = int(S[1]) H = int(S[2]) M = int(S[3]) Hang = H*30 + M*0.5 Mang = M*6 if abs(Hang-Mang) > 180: Difang = 180 - abs(Hang - Mang) else: Difang = abs(Hang - Mang) Answ= A**2 + B**2 - 2*A*B*(math.cos(math.radians(Difang))) print(math.sqrt(Answ))
import math s = input() S = s.split() A = int(S[0]) B = int(S[1]) H = int(S[2]) M = int(S[3]) Hang = H*30 + M*0.5 Mang = M*6 if abs(Hang-Mang) > 180: Difang = 360 - abs(Hang - Mang) else: Difang = abs(Hang - Mang) Answ= A**2 + B**2 - 2*A*B*(math.cos(math.radians(Difang))) print(math.sqrt(Answ))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
398,257
398,258
u247540845
python
p02677
import math s = input() S = s.split() A = int(S[0]) B = int(S[1]) H = int(S[2]) M = int(S[3]) Hang = H*30 + M*0.5 Mang = M*6 if abs(Hang-Mang) > 180: Difang = abs(Hang - Mang) - 180 else: Difang = abs(Hang - Mang) Answ= A**2 + B**2 - 2*A*B*(math.cos(math.radians(Difang))) print(math.sqrt(Answ))
import math s = input() S = s.split() A = int(S[0]) B = int(S[1]) H = int(S[2]) M = int(S[3]) Hang = H*30 + M*0.5 Mang = M*6 if abs(Hang-Mang) > 180: Difang = 360 - abs(Hang - Mang) else: Difang = abs(Hang - Mang) Answ= A**2 + B**2 - 2*A*B*(math.cos(math.radians(Difang))) print(math.sqrt(Answ))
[ "expression.operation.binary.remove" ]
398,259
398,258
u247540845
python
p02677
import math a, b, h, m = map(int, input().split()) if h * 360 / 12 + m * 360 / 60 / 12 > m * 360 / 60: r = h * 360 / 12 + m * 360 / 60 / 12 - m * 360 / 60 else: r = m * 360 / 60 - h * 360 / 12 + m * 360 / 60 / 12 if r > 180: r = 360 - r % 360 if r == 90: t = a ** 2 + b ** 2 print(math.sqrt(t)) ...
import math a, b, h, m = map(int, input().split()) if h * 360 / 12 + m * 360 / 60 / 12 > m * 360 / 60: r = (h * 360 / 12 + m * 360 / 60 / 12 )- m * 360 / 60 else: r = m * 360 / 60 - (h * 360 / 12 + m * 360 / 60 / 12) if r > 180: r = 360 - r if r == 90: t = a ** 2 + b ** 2 print(math.sqrt(t)) el...
[ "expression.operation.binary.remove" ]
398,264
398,265
u667687319
python
p02677
import math a, b, h, m = map(int, input().split()) if h * 360 / 12 + m * 360 / 60 / 12 > m * 360 / 60: r = h * 360 / 12 + m * 360 / 60 / 12 - m * 360 / 60 else: r = m * 360 / 60 - h * 360 / 12 + m * 360 / 60 / 12 if r > 180: r = 360 - r if r == 90: t = a ** 2 + b ** 2 print(math.sqrt(t)) else: ...
import math a, b, h, m = map(int, input().split()) if h * 360 / 12 + m * 360 / 60 / 12 > m * 360 / 60: r = (h * 360 / 12 + m * 360 / 60 / 12 )- m * 360 / 60 else: r = m * 360 / 60 - (h * 360 / 12 + m * 360 / 60 / 12) if r > 180: r = 360 - r if r == 90: t = a ** 2 + b ** 2 print(math.sqrt(t)) el...
[]
398,266
398,265
u667687319
python
p02677
import math A, B, H, M = [float(i) for i in input().split()] C = float(abs(30.0*H + 0.50*M - 6.0*M)) if C > 180: C -= 180.0 c2 = A*A + B*B - 2*A*B*(math.cos((C/180.0)*math.pi)) c2 = math.sqrt(c2) print(f'{c2:.{15}f}')
import math A, B, H, M = [float(i) for i in input().split()] C = float(abs(30.0*H + 0.50*M - 6.0*M)) if C > 180: C = 360.0 - C c2 = A*A + B*B - 2*A*B*(math.cos((C/180.0)*math.pi)) c2 = math.sqrt(c2) print(f'{c2:.{15}f}')
[ "assignment.add" ]
398,273
398,274
u722761145
python
p02677
import math A, B, H, M = [int(i) for i in input().split()] C = float(abs(30.0*H + 0.50*M - 6.0*M)) if C > 180: C -= 180.0 c2 = A*A + B*B - 2*A*B*(math.cos((C/180.0)*math.pi)) c2 = math.sqrt(c2) print(f'{c2:.{15}f}')
import math A, B, H, M = [float(i) for i in input().split()] C = float(abs(30.0*H + 0.50*M - 6.0*M)) if C > 180: C = 360.0 - C c2 = A*A + B*B - 2*A*B*(math.cos((C/180.0)*math.pi)) c2 = math.sqrt(c2) print(f'{c2:.{15}f}')
[ "assignment.value.change", "identifier.change", "call.function.change" ]
398,275
398,274
u722761145
python
p02677
import numpy as np A, B, H, M = map(int, input().split()) w_h = 360/12*H + 30/60*M #時針の角度(angle) w_m = 360/60*M #分針の角度(angle) dif_angle = abs(w_h-w_m) if dif_angle >= 180: dif_angle -= 180 rad = dif_angle/180*np.pi C_2 = (A**2) + (B**2) - 2*A*B*np.cos(rad) ans = np.sqrt(C_2) print(ans)
import numpy as np A, B, H, M = map(int, input().split()) w_h = 360/12*H + 30/60*M #時針の角度(angle) w_m = 360/60*M #分針の角度(angle) dif_angle = abs(w_h-w_m) if dif_angle >= 180: dif_angle = 360 - dif_angle rad = dif_angle/180*np.pi C_2 = (A**2) + (B**2) - 2*A*B*np.cos(rad) ans = np.sqrt(C_2) print(ans)
[ "assignment.add" ]
398,276
398,277
u723444827
python
p02677
from sys import stdin import math import fractions from collections import deque from collections import Counter import itertools INF = 10 ** 10 # A:時 # B:分 A, B, H, M = [int(x) for x in stdin.readline().rstrip().split()] total_minute = H * 60 + M tyosin = 6 * total_minute % 360 tanshin = 0.5 * total_minute % 360 ...
from sys import stdin import math import fractions from collections import deque from collections import Counter import itertools INF = 10 ** 10 # A:時 # B:分 A, B, H, M = [int(x) for x in stdin.readline().rstrip().split()] total_minute = H * 60 + M tyosin = 6 * total_minute % 360 tanshin = 0.5 * total_minute % 360 ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
398,282
398,283
u979667682
python
p02677
from sys import stdin import math import fractions from collections import deque from collections import Counter import itertools INF = 10 ** 10 # A:時 # B:分 A, B, H, M = [int(x) for x in stdin.readline().rstrip().split()] total_minute = H * 60 + M tyosin = 6 * total_minute % 360 tanshin = 0.5 * total_minute % 360 ...
from sys import stdin import math import fractions from collections import deque from collections import Counter import itertools INF = 10 ** 10 # A:時 # B:分 A, B, H, M = [int(x) for x in stdin.readline().rstrip().split()] total_minute = H * 60 + M tyosin = 6 * total_minute % 360 tanshin = 0.5 * total_minute % 360 ...
[ "expression.operation.binary.remove" ]
398,284
398,283
u979667682
python
p02677
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(b-a) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(abs(b-a)) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
[ "call.arguments.add", "call.arguments.change" ]
398,290
398,291
u615968644
python
p02677
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(0) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(abs(b-a)) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "io.output.change", "call.arguments.add" ]
398,292
398,291
u615968644
python
p02677
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(b-a) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(abs(b-a)) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
[ "call.arguments.add", "call.arguments.change" ]
398,293
398,291
u615968644
python
p02677
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(b-a) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
import math a, b, h, m = map(int, input().split()) h=h*60+m ang=abs(h*0.5-m*6) if ang > 180: ang = 360-ang if ang==180: print(a+b) elif(ang==0): print(abs(b-a)) else: ans=(a**2)+(b**2)-(2*a*b*math.cos(math.radians(ang))) print(math.sqrt(ans))
[ "call.arguments.add", "call.arguments.change" ]
398,294
398,291
u615968644
python
p02677
import math A, B, H, M = map(int,input().split()) c = 0 timeA = H + (M/60) argA = (1/12)*timeA argB = (1/60)*M sitaA = 360*argA sitaB = 360*argB if abs(sitaA-sitaB) == 180: print(A+B) exit() if sitaA == sitaB: print(abs(B-A)) exit() elif sitaA > sitaB: c = math.sqrt(A**2 + B**2 - abs((2*A*B*math.cos...
import math A, B, H, M = map(int,input().split()) c = 0 timeA = H + (M/60) argA = (1/12)*timeA argB = (1/60)*M sitaA = 360*argA sitaB = 360*argB if abs(sitaA-sitaB) == 180: print(A+B) exit() if sitaA == sitaB: print(abs(B-A)) exit() elif sitaA > sitaB: c = math.sqrt(A**2 + B**2 - (2*A*B*math.cos(ma...
[ "call.remove", "call.arguments.change" ]
398,295
398,296
u400982556
python
p02677
import math if __name__ == "__main__": # A(cm): 時針の長さ # B(cm): 分針の長さ # H(時): 時 # M(分): 分 A, B, H, M = map(int, input().split()) angle_h = 2*math.pi * (60*H + M) / (12 * 60) angle_m = 2*math.pi * M / 60 diff = abs(angle_h - angle_m) gamma = diff if diff < math.pi else diff - math.pi...
import math if __name__ == "__main__": # A(cm): 時針の長さ # B(cm): 分針の長さ # H(時): 時 # M(分): 分 A, B, H, M = map(int, input().split()) angle_h = 2*math.pi * (60*H + M) / (12 * 60) angle_m = 2*math.pi * M / 60 diff = abs(angle_h - angle_m) gamma = diff if diff < math.pi else 2*math.pi - di...
[ "assignment.change" ]
398,299
398,300
u081823802
python
p02677
import numpy as np import math a,b,h,m = map(int, input().split()) ty = ((h*60+m)/60)/12 ta = (m)/60 if abs(ty-ta)>0.5: k = 1-abs(ty-ta) else: k = abs(ty-ta) #print(k) if h*60+m==12*m: print(b-a) else: ans = a**2+b**2-2*a*b*(np.cos(k*2*math.pi)) print(math.sqrt(ans))
import numpy as np import math a,b,h,m = map(int, input().split()) ty = ((h*60+m)/60)/12 ta = (m)/60 if abs(ty-ta)>0.5: k = 1-abs(ty-ta) else: k = abs(ty-ta) #print(k) if h*60+m==12*m: print(abs(b-a)) else: ans = a**2+b**2-2*a*b*(np.cos(k*2*math.pi)) print(math.sqrt(ans))
[ "call.arguments.add", "call.arguments.change" ]
398,301
398,302
u351480677
python
p02677
import math a,b,h,m=input().split(' ') w1=2*math.pi/720.0 w2=2*math.pi/60.0 t1 = w1*(int(h)*60+int(m)) t2 = w2*int(m) t3 = abs(t1-t2) l3 = math.sqrt(int(a)*int(a)+int(b)*int(b)-(abs)(2*int(a)*int(b)*math.cos(t3))) print(l3)
import math a,b,h,m=input().split(' ') w1=2*math.pi/720.0 w2=2*math.pi/60.0 t1 = w1*(int(h)*60+int(m)) t2 = w2*int(m) t3 = abs(t1-t2) l3 = math.sqrt(int(a)*int(a)+int(b)*int(b)-(2*int(a)*int(b)*math.cos(t3))) print(l3)
[ "call.remove" ]
398,304
398,305
u263881582
python
p02677
import math a,b,h,m=map(int,input().split()) q=h*30+m*0.5 w=m*6 cosa=math.cos(math.radians(q-w)) print((a**2+b**2-2*a*b*cos)**0.5)
import math a,b,h,m=map(int,input().split()) q=h*30+m*0.5 w=m*6 cosa=math.cos(math.radians(q-w)) print((a**2+b**2-2*a*b*cosa)**0.5)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
398,311
398,312
u790768332
python
p02677
import math a,b,h,m=map(int,input().split()) ha=h * 30 + (30 * (m / 60)) ma=360 * (m / 60) angle=max(ha,ma)-min(ha,ma) if angle>=180: angle-=180 if angle==90: print(math.sqrt(a*a+b*b)) elif angle==0 or angle==180: if angle==0: print(abs(a-b)) else: print(a+b) else: angle=angle/180*math.pi #print(ha,...
import math a,b,h,m=map(int,input().split()) ha=h * 30 + (30 * (m / 60)) ma=360 * (m / 60) angle=max(ha,ma)-min(ha,ma) if angle>=180: angle = 360-angle if angle==90: print(math.sqrt(a*a+b*b)) elif angle==0 or angle==180: if angle==0: print(abs(a-b)) else: print(a+b) else: angle=angle/180*math.pi #pr...
[ "assignment.add" ]
398,313
398,314
u104254237
python
p02677
import math import decimal a, b, h, m = map(int, input().split()) l = 6*m s = 30*h + 0.5*m r = abs(l-s) print(r) cos = math.cos(math.radians(r)) ans = ((a**2+b**2)-2*a*b*cos)**0.5 print('{:.20f}'.format(ans))
import math import decimal a, b, h, m = map(int, input().split()) l = 6*m s = 30*h + 0.5*m r = abs(l-s) cos = math.cos(math.radians(r)) ans = ((a**2+b**2)-2*a*b*cos)**0.5 print('{:.21f}\n'.format(ans))
[ "call.remove", "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
398,319
398,320
u377072670
python
p02677
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import math as mt def main(): A, B, H, M = map(int, input().split()) theta1 = 30*H + M/2 theta2 = 60*M xx = A**2 + B**2 - 2*A*B*mt.cos(mt.radians(theta2-theta1)) print(mt.sqrt(xx)) if __name__ == '__main__': main()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import math as mt def main(): A, B, H, M = map(int, input().split()) theta1 = 30*H + M/2 theta2 = 6*M xx = A**2 + B**2 - 2*A*B*mt.cos(mt.radians(theta2-theta1)) print(mt.sqrt(xx)) if __name__ == '__main__': main()
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
398,329
398,330
u173494138
python
p02677
import math a,b,h,m=map(int,input().split()) h_=h*30 m_=m*6 p=abs(h_-m_) if p>=180: p=360-p ans=a**2+b**2-2*a*b*math.cos(math.radians(p)) print((ans)**0.5)
import math a,b,h,m=map(int,input().split()) h_=h*30+m*30/60 m_=m*6 p=abs(h_-m_) if p>=180: p=360-p ans=a**2+b**2-2*a*b*math.cos(math.radians(p)) print((ans)**0.5)
[ "assignment.change" ]
398,338
398,339
u121879791
python
p02677
import math A, B, H, M = map(int, input().split()) sA = (60*H+M)/360*3.141592 sB = M/30*3.141592 Ax = A*math.cos(sA) Bx = B*math.cos(sB) Ay = A*math.sin(sA) By = B*math.sin(sB) res = math.sqrt((Ax-Bx)**2+(Ay-By)**2) print(res)
import math A, B, H, M = map(int, input().split()) sA = (60*H+M)/360*math.pi sB = M/30*math.pi Ax = A*math.cos(sA) Bx = B*math.cos(sB) Ay = A*math.sin(sA) By = B*math.sin(sB) res = math.sqrt((Ax-Bx)**2+(Ay-By)**2) print(res)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change" ]
398,342
398,343
u090068671
python
p02677
import math A,B,h,m=map(int,input().split()) time=60*h+m a=(0.5*time)%360 b=(6*time)%360 x=abs(a-b) if x==0 or x==360: c=0 elif x==180: c=A+B else: c=math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(x))) print(c)
import math A,B,h,m=map(int,input().split()) time=60*h+m a=(0.5*time)%360 b=(6*time)%360 x=abs(a-b) if x==0 or x==360: c=abs(A-B) elif x==180: c=A+B else: c=math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(x))) print(c)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "call.arguments.add" ]
398,350
398,351
u366974168
python
p02677
import math chou_len, tan_len, nan_ji, nan_pun = map(int, input().split()) nan_ji_kaku = 30*nan_ji + nan_pun*30/60 nan_pun_kaku = 6*nan_pun kaku = abs(nan_ji_kaku-nan_pun_kaku) if kaku > 180: kaku = kaku - 180 if(kaku == 0): print(abs(chou_len-tan_len)) elif(kaku == 180): print(chou_len+tan_len) else: ka...
import math chou_len, tan_len, nan_ji, nan_pun = map(int, input().split()) nan_ji_kaku = 30*nan_ji + nan_pun*30/60 nan_pun_kaku = 6*nan_pun kaku = abs(nan_ji_kaku-nan_pun_kaku) if kaku > 180: kaku = 360-kaku if(kaku == 0): print(abs(chou_len-tan_len)) elif(kaku == 180): print(chou_len+tan_len) else: kai = m...
[ "expression.operation.binary.remove" ]
398,359
398,360
u277314812
python
p02677
import numpy as np from numpy import linalg as LA import math a,b,h,m=input().split() a=float(a) b=float(b) h=float(h) m=float(m) hh=-h/12*360+90 mm=-m/60*360+90 hx=math.cos(math.radians(hh))*a hy=math.sin(math.radians(hh))*a mx=math.cos(math.radians(mm))*b my=math.sin(math.radians(mm))*b x=np.array([hx-mx,hy-my]) p...
import numpy as np from numpy import linalg as LA import math a,b,h,m=input().split() a=float(a) b=float(b) h=float(h) m=float(m) hh=-(h/12+m/720)*360+90 mm=-m/60*360+90 hx=math.cos(math.radians(hh))*a hy=math.sin(math.radians(hh))*a mx=math.cos(math.radians(mm))*b my=math.sin(math.radians(mm))*b x=np.array([hx-mx,h...
[]
398,361
398,362
u469685228
python
p02677
# -*- coding: utf-8 -*- import math a, b, h, m = map(int, input().split()) h = 30*h m = 6*m delta = abs((h-m)*math.pi/180) print(math.sqrt(a**2+b**2-2*a*b*math.cos(delta)))
# -*- coding: utf-8 -*- import math a, b, h, m = map(int, input().split()) h = 30*h m = 6*m h += m/12 delta = abs((h-m)*math.pi/180) print(math.sqrt(a**2+b**2-2*a*b*math.cos(delta)))
[]
398,363
398,364
u021763820
python
p02677
import math abhm = input('') a=int(abhm.split(' ')[0]) b=int(abhm.split(' ')[1]) h=int(abhm.split(' ')[2]) m=int(abhm.split(' ')[3]) hx=360/12*h + 360/(12*60)*m mx=360/60*m angle = abs(hx-mx) if angle > 180: angle = abs(angle-180) c2 = pow(a,2) + pow(b,2) - 2*a*b*math.cos(math.radians(angle)) #print("a:{} b:{} c...
import math abhm = input('') a=int(abhm.split(' ')[0]) b=int(abhm.split(' ')[1]) h=int(abhm.split(' ')[2]) m=int(abhm.split(' ')[3]) hx=360/12*h + 360/(12*60)*m mx=360/60*m #print("hx:{}/{} mx:{}/{}".format(h,hx,m,mx)) angle = abs(hx-mx) if angle > 180: angle = abs(angle-360) c2 = pow(a,2) + pow(b,2) - 2*a*b*ma...
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,365
398,366
u194228880
python
p02677
import math in1 = input().split() A = float(in1[0]) B = float(in1[1]) H = float(in1[2]) M = float(in1[3]) aH = 0.5 * (H * 60 + M) aM = 6*M ra = abs(aH-aM) ra1 = min(360 - ra, ra) C2 = ((A*A)+(B*B))- (2*(A*B))*(math.cos(math.radians(ra1))) print(math.sqrt(C2)) print(ra1)
import math in1 = input().split() A = float(in1[0]) B = float(in1[1]) H = float(in1[2]) M = float(in1[3]) aH = 0.5 * (H * 60 + M) aM = 6*M ra = abs(aH-aM) ra1 = min(360 - ra, ra) C2 = ((A*A)+(B*B))- (2*(A*B))*(math.cos(math.radians(ra1))) print(math.sqrt(C2))
[ "call.remove" ]
398,370
398,371
u678048156
python
p02677
a, b, h, m = map(int, input().split()) import math hour_v = 2 * math.pi / 12 min_v = 2 * math.pi / 60 hour_ang = (h + (m/60)) * hour_v min_ang = m * min_v if hour_ang < min_ang: theta = min_ang - hour_ang else: theta = hour_ang - min_ang print(theta) ans = math.sqrt((a ** 2) + (b ** 2) - 2 * a * b * math....
a, b, h, m = map(int, input().split()) import math hour_v = 2 * math.pi / 12 min_v = 2 * math.pi / 60 hour_ang = (h + (m/60)) * hour_v min_ang = m * min_v if hour_ang < min_ang: theta = min_ang - hour_ang else: theta = hour_ang - min_ang ans = math.sqrt((a ** 2) + (b ** 2) - 2 * a * b * math.cos(theta)) p...
[ "call.remove" ]
398,376
398,377
u548545174
python
p02677
import math a, b, h, m = map(int, input().split()) bb = math.pi * m / 30. aa = math.pi * (h+m/60.) / 6. print(aa, bb) print(math.sqrt((b*math.sin(bb)-a*math.sin(aa)) ** 2 + (b*math.cos(bb)-a*math.cos(aa))**2))
import math a, b, h, m = map(int, input().split()) bb = math.pi * m / 30. aa = math.pi * (h+m/60.) / 6. print(math.sqrt((b*math.sin(bb)-a*math.sin(aa)) ** 2 + (b*math.cos(bb)-a*math.cos(aa))**2))
[ "call.remove" ]
398,381
398,382
u731603651
python
p02677
import math a, b, h, m = map(int, input().split()) hour = 0.5 * (h * 60 + m) minute = 6 * m angle = abs(hour - minute) angle = min(360 - angle, angle) print(angle) ans = a**2 + b**2 - 2*a*b*math.cos(math.radians(angle)) ans = ans**0.5 print(ans)
import math a, b, h, m = map(int, input().split()) hour = 0.5 * (h * 60 + m) minute = 6 * m angle = abs(hour - minute) angle = min(360 - angle, angle) ans = a**2 + b**2 - 2*a*b*math.cos(math.radians(angle)) ans = ans**0.5 print(ans)
[ "call.remove" ]
398,399
398,400
u418197217
python
p02677
import math a,b,h,m=map(int,input().split()) hkakudo=h*30+(m//2) mkakudo=m*6 if hkakudo == 0: hkakudo = 360 if mkakudo == 0: mkakudo = 360 kakudo = abs(hkakudo-mkakudo) print(math.sqrt(a**2+b**2-(2*a*b*math.cos(math.radians(kakudo)))))
import math a,b,h,m=map(int,input().split()) hkakudo=h*30+(m/2) mkakudo=m*6 if hkakudo == 0: hkakudo = 360 if mkakudo == 0: mkakudo = 360 kakudo = abs(hkakudo-mkakudo) print(math.sqrt(a**2+b**2-(2*a*b*math.cos(math.radians(kakudo)))))
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
398,401
398,402
u079022116
python
p02677
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/360) print(math.sqrt(ans)) if __name__ == "__main__": main()
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/180) # print(ans**0.5) print(math.sqrt(ans)) if __name__ == "__main__": main...
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,405
398,406
u143322814
python
p02677
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 360 / 12 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar+br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/360) print(math.sqrt(ans)) if __name__ == "__main__": main()
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/180) # print(ans**0.5) print(math.sqrt(ans)) if __name__ == "__main__": main...
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change", "expression.operation.binary.remove", "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change" ]
398,407
398,406
u143322814
python
p02677
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 360 / 12 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar+br)) < 180 else 360-x ans = a**2 + b**2 - 2 * a * b * math.cos(kakudo * math.pi /360) print(math.sqrt(ans)) if __name__ == "__main__": main()
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/180) # print(ans**0.5) print(math.sqrt(ans)) if __name__ == "__main__": main...
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change", "expression.operation.binary.remove", "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change" ]
398,408
398,406
u143322814
python
p02677
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/360) print(ans**0.5) if __name__ == "__main__": main()
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/180) print(ans**0.5) # print(math.sqrt(ans)) if __name__ == "__main__": main...
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,409
398,410
u143322814
python
p02677
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar+br)) < 180 else 360-x # ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/360) ans = a**2+b**2-2*a*b*math.cos(math.radians(kakudo)) print(ans**0.5) if __name...
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(math.radians(kakudo)) print(ans**0.5) if __name__ == "__main__": main()
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
398,411
398,412
u143322814
python
p02677
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 360 / 12 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar+br)) < 180 else 360-x # ans = a**2+b**2-2*a*b*math.cos(kakudo*math.pi/360) ans = a**2+b**2-2*a*b*math.cos(math.radians(kakudo)) print(ans**0.5) if ...
import math def main(): a,b,h,m = map(int, input().split()) ar = h * 360 / 12 + m * 30 / 60 br = m * 360 / 60 kakudo = x if (x := abs(ar-br)) < 180 else 360-x ans = a**2+b**2-2*a*b*math.cos(math.radians(kakudo)) print(ans**0.5) if __name__ == "__main__": main()
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change", "expression.operation.binary.remove", "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change" ]
398,413
398,412
u143322814
python
p02677
import math A, B, H, M = map(int, input().split()) Mkaku = 6 * M Hkaku = (H * 60 + M) / 2 r1 = Hkaku * math.pi / 180 r2 = Mkaku * math.pi / 180 v1x = A * math.cos(r1) v1y = A * math.sin(r1) v2x = B * math.cos(r2) v2y = B * math.sin(r2) ans = ((v1x - v2x) ** 2 + (v1y - v2y) ** 2) ** 1/2 print(ans)
import math A, B, H, M = map(int, input().split()) Mkaku = 6 * M Hkaku = (H * 60 + M) / 2 r1 = Hkaku * math.pi / 180 r2 = Mkaku * math.pi / 180 v1x = A * math.cos(r1) v1y = A * math.sin(r1) v2x = B * math.cos(r2) v2y = B * math.sin(r2) ans = ((v1x - v2x) ** 2 + (v1y - v2y) ** 2) ** (1 / 2) print(ans)
[]
398,418
398,419
u317533286
python
p02677
import sys import math #sys.exit() #sorted( ,reverse=True) #N = int(input()) A,B,H,M = map(int, input().split()) #A = list(map(int, input().split())) #A = [int(input()) for _ in range(N)] cA = 360*H//12 +30 * M//60 cB = 360*M//60 cC = abs(cA -cB) if cC > 180: cC = 360 - cC #cnt = 0 #cnt += 1 coscC = math.cos(math.r...
import sys import math #sys.exit() #sorted( ,reverse=True) #N = int(input()) A,B,H,M = map(int, input().split()) #A = list(map(int, input().split())) #A = [int(input()) for _ in range(N)] cA = 360*H/12 +30 * M/60 cB = 360*M/60 cC = abs(cA -cB) if cC > 180: cC = 360 - cC #cnt = 0 #cnt += 1 coscC = math.cos(math.radi...
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
398,421
398,422
u529106146
python
p02677
import sys import math #sys.exit() #sorted( ,reverse=True) #N = int(input()) A,B,H,M = map(int, input().split()) #A = list(map(int, input().split())) #A = [int(input()) for _ in range(N)] cA = 360*H//12 +30 * M//60 cB = 360*M//60 cC = abs(cA -cB) if cC > 180: cC = 360 - cC #cnt = 0 #cnt += 1 coscC = math.cos(math....
import sys import math #sys.exit() #sorted( ,reverse=True) #N = int(input()) A,B,H,M = map(int, input().split()) #A = list(map(int, input().split())) #A = [int(input()) for _ in range(N)] cA = 360*H/12 +30 * M/60 cB = 360*M/60 cC = abs(cA -cB) if cC > 180: cC = 360 - cC #cnt = 0 #cnt += 1 coscC = math.cos(math.radi...
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
398,423
398,422
u529106146
python
p02677
#C from math import cos,pi,pow A,B,H,M=map(float,input().split()) A_d=pi*(H*60+M)/360 B_d=pi*M/30 D=abs(A_d-B_d)%pi result=pow(A**2+B**2-2*A*B*cos(D),0.5) print(result)
#C from math import cos,pi,pow A,B,H,M=map(float,input().split()) A_d=pi*(H*60+M)/360 B_d=pi*M/30 D=abs(A_d-B_d) result=pow(A**2+B**2-2*A*B*cos(D),0.5) print(result)
[ "expression.operation.binary.remove" ]
398,430
398,431
u330728443
python
p02677
import sys import math A, B, H, M = map(int, input().split()) cA = 360*H//12 + 30 * M//60 cB = 360*M//60 cC = abs(cA - cB) if cC > 180: cC = 360 - cC coscC = math.cos(math.radians(cC)) C = A**2 + B**2 - 2 * A*B*coscC print(C**(1/2))
import sys import math A, B, H, M = map(int, input().split()) cA = 360*H/12 + 30 * M/60 cB = 360*M/60 cC = abs(cA - cB) if cC > 180: cC = 360 - cC coscC = math.cos(math.radians(cC)) C = A**2 + B**2 - 2 * A*B*coscC print(C**(1/2))
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
398,436
398,437
u999989620
python
p02677
import math a,b,h,m=map(int,input().split()) h=h+m*(0.5/30) angle=30*h-6*m print(angle) x=math.sqrt((a*a)+(b*b)-2*a*b*math.cos(math.radians(angle))) print(x)
import math a,b,h,m=map(int,input().split()) h=h+m*(0.5/30) angle=(30*h-6*m) x=math.sqrt((a*a)+(b*b)-2*a*b*math.cos(math.radians(angle))) print(x)
[ "call.remove" ]
398,458
398,459
u340585574
python
p02677
import math A, B, H, M = map(int, input().split()) H = H * 30 + M * 0.5 M = M * 6 diff = H - M if diff < 0: if diff < -180: diff = abs(diff + 180) else: diff = abs(diff) if diff >= 180: diff = 180 - (diff - 180) print(math.sqrt(A**2 + B**2 - (2 * A * B * math.cos(math.radians(diff)))))
import math A, B, H, M = map(int, input().split()) H = H * 30 + M * 0.5 M = M * 6 diff = H - M if diff < 0: if diff < -180: diff = 180 - abs(diff + 180) else: diff = abs(diff) if diff > 180: diff = 180 - (diff - 180) print(math.sqrt(A**2 + B**2 - (2 * A * B * math.cos(math.radians(diff)...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
398,470
398,471
u864202285
python
p02677
import math A, B, H, M = map(int, input().split()) H = H * 30 + M * 0.5 M = M * 6 diff = H - M if diff < 0: if diff <= -180: diff = abs(diff + 180) else: diff = abs(diff) if diff > 180: diff = 180 - (diff - 180) print(math.sqrt(A**2 + B**2 - (2 * A * B * math.cos(math.radians(diff)))))
import math A, B, H, M = map(int, input().split()) H = H * 30 + M * 0.5 M = M * 6 diff = H - M if diff < 0: if diff < -180: diff = 180 - abs(diff + 180) else: diff = abs(diff) if diff > 180: diff = 180 - (diff - 180) print(math.sqrt(A**2 + B**2 - (2 * A * B * math.cos(math.radians(diff)...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
398,472
398,471
u864202285
python
p02677
import math A, B, H, M = map(int, input().split()) H = H * 30 + M * 0.5 M = M * 6 diff = H - M if diff < 0: if diff < -180: diff = abs(diff + 180) else: diff = abs(diff) if diff > 180: diff = 180 - (diff - 180) print(math.sqrt(A**2 + B**2 - (2 * A * B * math.cos(math.radians(diff)))))
import math A, B, H, M = map(int, input().split()) H = H * 30 + M * 0.5 M = M * 6 diff = H - M if diff < 0: if diff < -180: diff = 180 - abs(diff + 180) else: diff = abs(diff) if diff > 180: diff = 180 - (diff - 180) print(math.sqrt(A**2 + B**2 - (2 * A * B * math.cos(math.radians(diff)...
[ "assignment.change" ]
398,473
398,471
u864202285
python
p02677
import math a, b, h, m = map(int, input().split()) # 角度を求める H = 30 * h + (m/2) M = 6 * m theta = abs(H-M) if theta == 0 or theta == 360: print(abs(a-b)) exit() if theta > 180: theta = theta - 180 #print(a, b, H, M, theta, math.sin(theta), math.cos(theta), math.tan(theta), math.sin(math.radians(theta)), math.cos(m...
import math a, b, h, m = map(int, input().split()) # 角度を求める H = 30 * h + (m/2) M = 6 * m theta = abs(H-M) if theta == 0 or theta == 360: print(abs(a-b)) exit() if theta > 180: theta = 360 - theta #print(a, b, H, M, theta, math.sin(theta), math.cos(theta), math.tan(theta), math.sin(math.radians(theta)), math.cos(m...
[ "expression.operation.binary.remove", "call.remove", "call.arguments.change" ]
398,477
398,478
u982749462
python
p02677
import math a, b, h, m = map(int, input().split()) # 角度を求める H = 30 * h + (m/2) M = 6 * m theta = abs(H-M) if theta == 0 or theta == 360: print(abs(a-b)) exit() if theta > 180: theta = theta - 180 #print(a, b, H, M, theta, math.sin(theta), math.cos(theta), math.tan(theta), math.sin(math.radians(theta)), math.cos(m...
import math a, b, h, m = map(int, input().split()) # 角度を求める H = 30 * h + (m/2) M = 6 * m theta = abs(H-M) if theta == 0 or theta == 360: print(abs(a-b)) exit() if theta > 180: theta = 360 - theta #print(a, b, H, M, theta, math.sin(theta), math.cos(theta), math.tan(theta), math.sin(math.radians(theta)), math.cos(m...
[ "expression.operation.binary.remove" ]
398,479
398,478
u982749462
python
p02677
import math a, b, h, m = map(int, input().split()) arg = abs(30*h - 5.5*m) if arg == 180: print(b+a) exit() if arg == 0: print(b-a) exit() if arg > 180: arg = 360 - arg length = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(arg))) print(length)
import math a, b, h, m = map(int, input().split()) arg = abs(30*h - 5.5*m) if arg == 180: print(b+a) exit() if arg == 0: print(abs(b-a)) exit() if arg > 180: arg = 360 - arg length = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(arg))) print(length)
[ "call.arguments.add", "call.arguments.change" ]
398,480
398,481
u047918169
python
p02677
# import sys import math #sqrt,gcd,pi # import decimal # import queue # queue # import bisect # import heapq # priolity-queue # import time # from itertools import product,permutations,\ # combinations,combinations_with_replacement # 重複あり順列、順列、組み合わせ、重複あり組み合わせ # import collections # deque # from operator import item...
# import sys import math #sqrt,gcd,pi # import decimal # import queue # queue # import bisect # import heapq # priolity-queue # import time # from itertools import product,permutations,\ # combinations,combinations_with_replacement # 重複あり順列、順列、組み合わせ、重複あり組み合わせ # import collections # deque # from operator import item...
[ "assignment.value.change", "identifier.replace.remove", "literal.replace.add", "expression.operation.binary.change" ]
398,484
398,485
u807028974
python
p02677
# import sys import math #sqrt,gcd,pi # import decimal # import queue # queue # import bisect # import heapq # priolity-queue # import time # from itertools import product,permutations,\ # combinations,combinations_with_replacement # 重複あり順列、順列、組み合わせ、重複あり組み合わせ # import collections # deque # from operator import item...
# import sys import math #sqrt,gcd,pi # import decimal # import queue # queue # import bisect # import heapq # priolity-queue # import time # from itertools import product,permutations,\ # combinations,combinations_with_replacement # 重複あり順列、順列、組み合わせ、重複あり組み合わせ # import collections # deque # from operator import item...
[ "assignment.add" ]
398,486
398,487
u807028974
python
p02677
import math a,b,h,m=map(int,input().split()) kakudoa=h*30+m/2 kakudob=m*60 kakudo=abs(kakudoa-kakudob)/180*math.pi print(str(math.sqrt(a*a+b*b-2*a*b*math.cos(kakudo))))
import math a,b,h,m=map(int,input().split()) kakudoa=h*30+m/2 kakudob=m*6 kakudo=abs(kakudoa-kakudob)/180*math.pi print(str(math.sqrt(a*a+b*b-2*a*b*math.cos(kakudo))))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
398,498
398,499
u000698877
python
p02677
A,B,H,M = map(int,input().split()) import math pi = math.pi c = pi*abs(H+M/60-M/5)/6 CC = A**2+B**2-2*math.cos(c) print(math.sqrt(CC))
A,B,H,M = map(int,input().split()) import math pi = math.pi c = pi*abs(H+M/60-M/5)/6 CC = A**2+B**2-2*A*B*math.cos(c) print(math.sqrt(CC))
[ "assignment.change" ]
398,500
398,501
u309018392
python
p02677
import math a,b,h,m=map(int, input().split()) #a1 a2 a3 alp=2*math.pi*(h/12+m/(12*60)-m/60) ans=math.sqrt(a**2+b**2-2*a*b*abs(math.cos(alp))) print(ans)
import math a,b,h,m=map(int, input().split()) #a1 a2 a3 alp=2*math.pi*(h/12+m/(12*60)-m/60) ans=math.sqrt(a**2+b**2-2*a*b*(math.cos(alp))) print(ans)
[ "call.arguments.change" ]
398,522
398,523
u344813796
python
p02677
import sys import math def _ia(): return map(int, sys.stdin.readline().strip().split()) def main(): a, b, h, m = _ia() ad = 30*h + .5*m bd = 60 * m dd = math.radians(ad-bd) return (a**2+b**2-2*a*b*math.cos(dd))**.5 if __name__ == "__main__": print(main())
import sys import math def _ia(): return map(int, sys.stdin.readline().strip().split()) def main(): a, b, h, m = _ia() ad = 30*h + .5*m bd = 6 * m dd = math.radians(ad-bd) return (a**2+b**2-2*a*b*math.cos(dd))**.5 if __name__ == "__main__": print(main())
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
398,529
398,530
u591589288
python