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
p02676
def main(): import sys sys.setrecursionlimit(10**6) input = sys.stdin.readline K = int(input()) S = input().strip() if len(S) <= K: print(S) else: print(S[:7]+'...') if __name__ == '__main__': main()
def main(): import sys sys.setrecursionlimit(10**6) input = sys.stdin.readline K = int(input()) S = input().strip() if len(S) <= K: print(S) else: print(S[:K]+'...') if __name__ == '__main__': main()
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,770
396,771
u408620326
python
p02676
N = int(input()) S = input() if len(S) < N: print(S) else: print(S[:N]+"...")
N = int(input()) S = input() if len(S) <= N: print(S) else: print(S[:N]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,772
396,773
u821251381
python
p02676
N = int(input()) S = list(input()) s = len(S) m = "..." if s<N: print(''.join(S)) else: k = ''.join(S[:N]) print(k+m )
N = int(input()) S = list(input()) s = len(S) m = "..." if s<=N: print(''.join(S)) else: k = ''.join(S[:N]) print(k+m )
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,774
396,775
u159975271
python
p02676
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S[:K],'...')
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S[:K],'...',sep='')
[ "call.arguments.add" ]
396,776
396,777
u319631723
python
p02676
k = int(input()) l = input() if len(l) >= k: print(l[: k] + '...') else: print(l)
k = int(input()) l = input() if len(l) > k: print(l[: k] + '...') else: print(l)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,778
396,779
u672370694
python
p02676
K=int(input()) S=str(input()) if len(S)<K: print(S) else: print(S[:K]+'...')
K=int(input()) S=str(input()) if len(S)<=K: print(S) else: print(S[:K]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,780
396,781
u748311048
python
p02676
def main(): K = int(input()) # 文字列または整数(一変数) S = input() if len(S) >= K: S = S[0:K] + '...' print(S) if __name__ == '__main__': main()
def main(): K = int(input()) # 文字列または整数(一変数) S = input() if len(S) > K: S = S[:K] + '...' print(S) if __name__ == '__main__': main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,792
396,793
u337751290
python
p02676
from math import radians from heapq import heapify, heappush, heappop import bisect from math import pi from collections import deque from math import factorial from math import log, ceil from collections import defaultdict from math import * from sys import stdin, stdout import itertools import os import sys import t...
from math import radians from heapq import heapify, heappush, heappop import bisect from math import pi from collections import deque from math import factorial from math import log, ceil from collections import defaultdict from math import * from sys import stdin, stdout import itertools import os import sys import t...
[ "assignment.variable.change", "identifier.change" ]
396,802
396,803
u134341470
python
p02676
def main(): import sys K=int(sys.stdin.readline()) S=sys.stdin.readline() if len(S)<=K: print(S) else: print(S[:K]+'...') main()
def main(): import sys K=int(sys.stdin.readline()) S=sys.stdin.readline().strip() if len(S)<=K: print(S) else: print(S[:K]+'...') main()
[ "call.add" ]
396,814
396,815
u129019798
python
p02676
def main(): k = int(input()) s = str(input()) if len(s) < k: print(s) else: print("{}...".format(s[:k])) if __name__ == '__main__': main()
def main(): k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print("{}...".format(s[:k])) if __name__ == '__main__': main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,820
396,821
u879584308
python
p02676
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections import copy k = int(input()) s = input() if len(s)<k: print(s) else: ans = "" for i in range(k): ans += s[i] ans += "..." print(ans)
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections import copy k = int(input()) s = input() if len(s)<=k: print(s) else: ans = "" for i in range(k): ans += s[i] ans += "..." print(ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,836
396,837
u379142263
python
p02676
k = int(input()) s = input() print(s if len(s) < k else s[:k] + '...')
k = int(input()) s = input() print(s if len(s) <= k else s[:k] + '...')
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
396,838
396,839
u531631168
python
p02676
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 9) def main(): k = int(input()) s = input()[:-1] if len(s) <= k: print(s) else: print(s[:7] + '...') if __name__ == '__main__': main()
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 9) def main(): k = int(input()) s = input()[:-1] if len(s) <= k: print(s) else: print(s[:k] + '...') if __name__ == '__main__': main()
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,846
396,847
u002539468
python
p02676
K = int(input()) S = input() len_S = len(S) if len_S <= K: print(S) else: ans = S[:K+1] print(ans+"...")
K = int(input()) S = input() len_S = len(S) if len_S <= K: print(S) else: ans = S[:K] print(ans+"...")
[ "expression.operation.binary.remove" ]
396,852
396,853
u982591663
python
p02676
def resolve(): K = int(input()) S = input() if K > len(S): print(S) return print(S[:K] + '...') resolve()
def resolve(): K = int(input()) S = input() if K >= len(S): print(S) return print(S[:K] + '...') resolve()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,860
396,861
u586662847
python
p02676
def main(): import sys input = sys.stdin.readline K = int(input()) S = list(input().rsplit()[0]) if K <= len(S): print("".join(S[:K]) + "...") else: print("".join(S)) if __name__ == "__main__": main()
def main(): import sys input = sys.stdin.readline K = int(input()) S = list(input().rsplit()[0]) if K < len(S): print("".join(S[:K]) + "...") else: print("".join(S)) if __name__ == "__main__": main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,864
396,865
u239917977
python
p02676
K = int(input()) S = input() if len(S)>K: S[:K]+"..." else: print(S)
K = int(input()) S = input() if len(S)>K: print(S[:K]+"...") else: print(S)
[ "call.add", "call.arguments.change" ]
396,874
396,875
u488178971
python
p02676
k=int(input()) s=input() if len(s) <= k: print(s) else: print(s[:k])
k=int(input()) s=input() if len(s) <= k: print(s) else: print(f"{s[:k]}...")
[ "call.arguments.change" ]
396,894
396,895
u847923740
python
p02676
k = (int)(input()) s=input() if len(s)>k: print(s[:7]+'...') else: print(s)
k = (int)(input()) s=input() if len(s)>k: print(s[:k]+'...') else: print(s)
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,896
396,897
u112007848
python
p02676
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from math import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # if ...
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from math import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # if ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,904
396,905
u156815136
python
p02677
import math A,B,H,M = map(int, input().split()) H = 60*H + M pi = (math.pi/180) HP = [A*math.cos(0.5*H*pi), A*math.sin(0.5*H*pi)] MP = [B*math.cos(6*M*pi), B*math.sin(6*M*pi)] print(HP, MP) print(math.sqrt((HP[0]-MP[0])**2 + (HP[1]-MP[1])**2))
import math A,B,H,M = map(int, input().split()) H = 60*H + M pi = (math.pi/180) HP = [A*math.cos(0.5*H*pi), A*math.sin(0.5*H*pi)] MP = [B*math.cos(6*M*pi), B*math.sin(6*M*pi)] print(math.sqrt((HP[0]-MP[0])**2 + (HP[1]-MP[1])**2))
[ "call.remove" ]
396,916
396,917
u543000780
python
p02677
import math a,b,h,m=map(int,input().split()) lrad=6*m srad=30*h+0.5*m if abs(lrad-srad)<=180: do=abs(lrad-srad) else: do=abs(lrad-srad)-180 rad=math.radians(do) print(math.sqrt(a**2+b**2-2*a*b*math.cos(rad)))
import math a,b,h,m=map(int,input().split()) lrad=6*m srad=30*h+0.5*m if abs(lrad-srad)<=180: do=abs(lrad-srad) else: do=360-abs(lrad-srad) rad=math.radians(do) print(math.sqrt(a**2+b**2-2*a*b*math.cos(rad)))
[ "expression.operation.binary.remove" ]
396,920
396,921
u433375322
python
p02677
import sys import math a,b,h,m=map(int,input().split()) f=h/12*360-m/60*260+m/60/12*360 print((a**2+b**2-2*b*a*(math.cos(math.radians(f))))**(0.5))
import sys import math a,b,h,m=map(int,input().split()) f=h / 12 * 360 - m / 60 * 360 + m / 60 / 12 * 360 print((a**2+b**2-2*b*a*(math.cos(math.radians(f))))**(0.5))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
396,922
396,923
u800058906
python
p02677
import math a,b,h,m=map(float,input().split()) c=(30*h-11/2*m) ct=math.radians(c) cos=math.cos(ct) ans=a**2+b**2-2*a*b*(abs(cos)) print(math.sqrt(ans))
import math a,b,h,m=map(float,input().split()) #時針の角度をA c=abs(30*h-11/2*m) ct=math.radians(c) cos=math.cos(ct) ans=a**2+b**2-2*a*b*cos print(math.sqrt(ans))
[ "call.add" ]
396,924
396,925
u956318161
python
p02677
a,b,h,m=map(float,input().split()) #時針の角度をA c=(30*h-11/2*m) ct=math.radians(c) cos=math.cos(ct) ans=a**2+b**2-2*a*b*abs(cos) print(math.sqrt(ans))
import math a,b,h,m=map(float,input().split()) #時針の角度をA c=abs(30*h-11/2*m) ct=math.radians(c) cos=math.cos(ct) ans=a**2+b**2-2*a*b*cos print(math.sqrt(ans))
[ "call.add", "call.remove", "call.arguments.change" ]
396,926
396,925
u956318161
python
p02677
import math a,b,h,m=map(float,input().split()) #時針の角度をA c=(30*h-11/2*m) ct=math.radians(c) cos=math.cos(ct) ans=a**2+b**2-2*a*b*abs(cos) print(math.sqrt(ans))
import math a,b,h,m=map(float,input().split()) #時針の角度をA c=abs(30*h-11/2*m) ct=math.radians(c) cos=math.cos(ct) ans=a**2+b**2-2*a*b*cos print(math.sqrt(ans))
[ "call.add", "call.remove", "call.arguments.change" ]
396,928
396,925
u956318161
python
p02677
A, B, H, M = list(map(int, input().split())) m = 360/60 * M h = 360/12 * (H + M/60) deg = abs(h-m) if deg>180: deg = 360-deg import math Csq = A**2 + B**2 - 2*A*B*math.cos(math.radians(deg)) print('{:.10f}'.format(math.sqrt(Csq))) print(deg)
A, B, H, M = list(map(int, input().split())) m = 360/60 * M h = 360/12 * (H + M/60) deg = abs(h-m) if deg>180: deg = 360-deg import math Csq = A**2 + B**2 - 2*A*B*math.cos(math.radians(deg)) print('{:.10f}'.format(math.sqrt(Csq)))
[ "call.remove" ]
396,934
396,935
u231570044
python
p02677
import numpy as np a,b,h,m = list(map(int,input().split())) theta = abs(h/12 - m/60)*2*np.pi print(np.sqrt((a*a+b*b-2*a*b*np.cos(theta))))
import numpy as np a,b,h,m = list(map(int,input().split())) theta = abs(h/12-11*m/720)*2*np.pi print(np.sqrt((a*a+b*b-2*a*b*np.cos(theta))))
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
396,936
396,937
u961358555
python
p02677
A, B, H, M = map(int, input().split()) # 時針: 12時間720分で360度 1分で0.5度 # 分針: 60分で360度 1分で6度 theta = abs(((0.5 * (H * 60 + M)) - (6 * M)) % 360) if theta > 180: theta = 360 - theta print(theta) import math C = math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(theta / 180 * math.pi)) print(C)
A, B, H, M = map(int, input().split()) # 時針: 12時間720分で360度 1分で0.5度 # 分針: 60分で360度 1分で6度 theta = abs(((0.5 * (H * 60 + M)) - (6 * M)) % 360) if theta > 180: theta = 360 - theta #print(theta) import math C = math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(theta / 180 * math.pi)) print(C)
[ "call.remove" ]
396,938
396,939
u921156673
python
p02677
import math a,b,h,m = map(int, input().split()) xh = a*math.cos((60*h+m)/720*math.pi) yh = a*math.sin((60*h+m)/720*math.pi) xm = b*math.cos(m/30*math.pi) ym = b*math.sin(m/30*math.pi) print( ((xh-xm)**2+(yh-ym)**2)**0.5 )
import math a,b,h,m = map(int, input().split()) xh = a*math.cos((60*h+m)/360*math.pi) yh = a*math.sin((60*h+m)/360*math.pi) xm = b*math.cos(m/30*math.pi) ym = b*math.sin(m/30*math.pi) print( ((xh-xm)**2+(yh-ym)**2)**0.5 )
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
396,940
396,941
u707030679
python
p02677
import math a,b,h,m = map(int,input().split()) ang1 = (h%12+m/60) * 30 ang2 = m * 6 ang = abs(ang1-ang2) % 180 if ang > 180: ang = 360 - ang print(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(ang))))
import math a,b,h,m = map(int,input().split()) ang1 = (h%12+m/60) * 30 ang2 = m * 6 ang = abs(ang1-ang2) if ang > 180: ang = 360 - ang print(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(ang))))
[ "expression.operation.binary.remove" ]
396,944
396,945
u029251499
python
p02677
import math a,b,h,m = map(int, input().split()) s = 30 * h + m * 0.5 l = m*6 x = abs(s-l) if x >= 180: x -= 180 c = math.cos(math.radians(x)) print((a**2+b**2-2*a*b*c)**0.5)
import math a,b,h,m = map(int, input().split()) s = 30 * h + m * 0.5 l = m*6 x = abs(s-l) if x >= 180: x = 360-x c = math.cos(math.radians(x)) print((a**2+b**2-2*a*b*c)**0.5)
[ "assignment.change" ]
396,946
396,947
u241159583
python
p02677
import math A,B,H,M=map(int,input().split()) c=abs(H*30-M*6) k=A*A+B*B-2*A*B*math.cos(c*math.pi/180) l=math.sqrt(k) print(l)
import math A,B,H,M=map(int,input().split()) c=abs(H*30-M*5.5) k=A*A+B*B-2*A*B*math.cos(c*math.pi/180) l=math.sqrt(k) print(l)
[ "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
396,949
396,950
u933650305
python
p02677
import math A,B,H,M=map(int,input().split()) c=abs(H*15-M*6) k=A*A+B*B-2*A*B*math.cos(c*math.pi/180) l=math.sqrt(k) print(l)
import math A,B,H,M=map(int,input().split()) c=abs(H*30-M*5.5) k=A*A+B*B-2*A*B*math.cos(c*math.pi/180) l=math.sqrt(k) print(l)
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
396,951
396,950
u933650305
python
p02677
import math A,B,H,M=map(int,input().split()) c=abs(H*15-M*6) k=A*A+B*B-2*A*B*math.cos(c*math.pi/360) l=math.sqrt(k) print(l)
import math A,B,H,M=map(int,input().split()) c=abs(H*30-M*5.5) k=A*A+B*B-2*A*B*math.cos(c*math.pi/180) l=math.sqrt(k) print(l)
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
396,952
396,950
u933650305
python
p02677
import math a,b,H,M = list(map(int,input().split())) angle=abs((H*30+M/2)-M*6)/360*2*math.pi print(angle) print((a**2+b**2-2*a*b*math.cos(angle))**0.5)
import math a,b,H,M = list(map(int,input().split())) angle=abs((H*30+M/2)-M*6)/360*2*math.pi print((a**2+b**2-2*a*b*math.cos(angle))**0.5)
[ "call.remove" ]
396,956
396,957
u556594202
python
p02677
A,B,H,M=map(int, input().split()) angle = abs(30*H-5.5*M) angle = min(angle, 360-angle)*math.pi/180 c=A**2 + B**2 -2*A*B* math.cos(angle) c=c**0.5 print(c)
A,B,H,M=map(int, input().split()) import math angle = abs(30*H-5.5*M) angle = min(angle, 360-angle)*math.pi/180 c=A**2 + B**2 -2*A*B* math.cos(angle) c=c**0.5 print(c)
[]
396,969
396,970
u247211039
python
p02677
A, B, H, M = map(int, input().split()) import math theta = (30 * H) - (0.5 * M) d2 = A * A + B * B - 2 * A * B * math.cos(math.radians(theta)) d = math.sqrt(d2) print(d)
A, B, H, M = map(int, input().split()) import math theta = (30 * H) - (5.5 * M) d2 = A * A + B * B - 2 * A * B * math.cos(math.radians(theta)) d = math.sqrt(d2) print(d)
[ "literal.number.float.change", "assignment.value.change", "expression.operation.binary.change" ]
396,973
396,974
u642267889
python
p02677
from sys import stdin import sys, math a, b, h, m = [int(x) for x in stdin.readline().rstrip().split()] x = 30*h + 0.5*m y = 6*m z = abs(x-y) if z > 180: z = z-180 c = a**2 + b**2 - 2*a*b*math.cos(math.radians(z)) c = math.sqrt(c) print(c)
from sys import stdin import sys, math a, b, h, m = [int(x) for x in stdin.readline().rstrip().split()] x = 30*h + 0.5*m y = 6*m z = abs(x-y) if z > 180: z = 360 - z c = a**2 + b**2 - 2*a*b*math.cos(math.radians(z)) c = math.sqrt(c) print(c)
[ "expression.operation.binary.remove" ]
396,979
396,980
u788260274
python
p02677
import math A , B , H , M = map(int,input().split()) Hour_rad = H * 30 Hour_rad += M * 0.5 Min_rad = M * 6 rad = abs(Hour_rad - Min_rad) #Hour_redとMin_radが180度離れていたらコサインに1引いたものを代入する。 if rad > 180: rad -= 180 ans = A**2 + B**2 - ( 2 * A * B * math.cos( math.radians ( rad )) ) ans = math.sqrt(ans) print(ans)
import math A , B , H , M = map(int,input().split()) Hour_rad = H * 30 Hour_rad += M * 0.5 Min_rad = M * 6 rad = abs(Hour_rad - Min_rad) if rad > 180: rad = 360 - rad #Hour_redとMin_radが180度離れていたらコサインに1引いたものを代入する。 ans = A**2 + B**2 - ( 2 * A * B * math.cos( math.radians ( rad )) ) ans = math.sqrt(ans) p...
[ "assignment.add" ]
396,981
396,982
u263483399
python
p02677
import math a,b,h,m = map(int,input().split()) th = m / 60 - (m + 60*h) / 720 pi = math.pi print(th) print(math.sqrt(a**2 + b ** 2 - 2 * a * b * math.cos(2*pi*th)))
import math a,b,h,m = map(int,input().split()) th = m / 60 - (m + 60*h) / 720 pi = math.pi print(math.sqrt(a**2 + b ** 2 - 2 * a * b * math.cos(2*pi*th)))
[ "call.remove" ]
396,983
396,984
u283929013
python
p02677
import math a,b,h,m = map(int,input().split()) def clock_to_minutes(h, m): minutes = m minutes += h*60 return minutes angular_speed_A = 360/12/60 angular_speed_B = 6 angle = abs((angular_speed_A - angular_speed_B)*clock_to_minutes(h,m)%360) ans = sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(angle))) print...
import math a,b,h,m = map(int,input().split()) def clock_to_minutes(h, m): minutes = m minutes += h*60 return minutes angular_speed_A = 360/12/60 angular_speed_B = 6 angle = abs((angular_speed_A - angular_speed_B)*clock_to_minutes(h,m)%360) ans = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(angle))) ...
[]
396,987
396,988
u862466626
python
p02677
import math a,b,h,m = map(int,input().split()) def clock_to_minutes(h, m): minutes = m minutes += h*60 return minutes angular_speed_A = 360/12/60 angular_speed_B = 6 angle = abs((angular_speed_A - angular_speed_B)*clock_to_minutes(h,m)%360) ans = a**2 + b**2 - 2*a*b*math.cos(math.radians(angle)) print(ans)
import math a,b,h,m = map(int,input().split()) def clock_to_minutes(h, m): minutes = m minutes += h*60 return minutes angular_speed_A = 360/12/60 angular_speed_B = 6 angle = abs((angular_speed_A - angular_speed_B)*clock_to_minutes(h,m)%360) ans = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(angle))) ...
[ "call.add", "call.arguments.change" ]
396,989
396,988
u862466626
python
p02677
import math A, B, H, M = map(int, input().split()) H_angle = 30*H M_angle = 6*M angle = abs(H_angle-M_angle) angle = min(angle, 360-angle) ans = (A*A+B*B-2*A*B*math.cos(math.radians(angle)))**0.5 print(ans)
import math A, B, H, M = map(int, input().split()) H_angle = 30*H+0.5*M M_angle = 6*M angle = abs(H_angle-M_angle) angle = min(angle, 360-angle) ans = (A*A+B*B-2*A*B*math.cos(math.radians(angle)))**0.5 print(ans)
[ "assignment.change" ]
396,994
396,995
u161164709
python
p02677
import math A, B, H, M = map(int, input().split()) angle = 30*H-6*M if angle > 180: angle = 360 - angle print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(abs(angle)))))
import math A, B, H, M = map(int, input().split()) angle = (30*H + M/2) - 6*M if angle > 180: angle = 360 - angle print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(abs(angle)))))
[]
397,000
397,001
u843768197
python
p02677
import math a,b,h,m = map(int,input().split()) hl = h * 30 + 30 * (m / 60) ml = m * 60 if ml == 0: c = 360 - hl else: c = abs(hl - ml) if c > 180: c = 360 - c d = (a ** 2) + (b ** 2) - (2 * a * b * (math.cos(math.radians(c)))) print(math.sqrt(d))
import math a,b,h,m = map(int,input().split()) hl = h * 30 + 30 * (m / 60) ml = m * 6 if ml == 0: c = 360 - hl else: c = abs(hl - ml) if c > 180: c = 360 - c d = (a ** 2) + (b ** 2) - (2 * a * b * (math.cos(math.radians(c)))) print(math.sqrt(d))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
397,004
397,005
u357751375
python
p02677
import numpy as np A, B, H, M = map(int, input().split()) Aw = 2 * np.pi / 12 / 60 Bw = 2 * np.pi / 60 thetaA = Aw * (H * 60 + M) thetaB = Bw * M # thetaA = 2 * np.pi * H / 12 + 2 * np.pi / 12 * M / 60 # thetaB = 2 * np.pi * M / 60 if thetaA > thetaB: ans = np.sqrt(A ** 2 + B ** 2 - 2 * A * B * np.cos(thetaA - t...
import numpy as np A, B, H, M = map(int, input().split()) Aw = 2 * np.pi / 12 / 60 Bw = 2 * np.pi / 60 thetaA = Aw * (H * 60 + M) thetaB = Bw * M # thetaA = 2 * np.pi * H / 12 + 2 * np.pi / 12 * M / 60 # thetaB = 2 * np.pi * M / 60 if thetaA > thetaB: ans = np.sqrt(A ** 2 + B ** 2 - 2 * A * B * np.cos(thetaA - t...
[ "call.arguments.add" ]
397,006
397,007
u661764795
python
p02677
# 余弦定理から、a**2 = b**2 + c**2 - 2bccosA # ヨビノリの授業動画で三角関数の理解を深める # import math # a,b,h,m = map(int,input().split()) # q = abs((h+m/60)/12-m/60) * 360 # print(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(q)))) import math A, B, H, M = map(int, input().split()) ''' 時計の角度はいくつか? 長針は60分で1回展(360度)回るので1分あたりに進む角度は、 360 /...
# 余弦定理から、a**2 = b**2 + c**2 - 2bccosA # ヨビノリの授業動画で三角関数の理解を深める # import math # a,b,h,m = map(int,input().split()) # q = abs((h+m/60)/12-m/60) * 360 # print(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(q)))) import math A, B, H, M = map(int, input().split()) ''' 時計の角度はいくつか? 長針は60分で1回展(360度)回るので1分あたりに進む角度は、 360 /...
[ "call.arguments.add", "call.arguments.change" ]
397,014
397,015
u485819963
python
p02677
import math # A = int(input()) # B = int(input()) # H = int(input()) # M = int(input()) A, B, H, M = map(int, input().split()) def angle(): wa = 0.5 wb = 6 w = wb-wa t = H*60 + M wnew = (w*t)%360 if wnew>=180: wnew = 360 - wnew return wnew cos_angle = math.cos(math.radians(angle())) distance = A**2 ...
import math A, B, H, M = map(int, input().split()) def angle(): wa = 0.5 wb = 6 w = wb-wa t = H*60 + M wnew = (w*t)%360 if wnew>=180: wnew = 360 - wnew return wnew cos_angle = math.cos(math.radians(angle())) distance = A**2 + B**2 - 2*A*B*cos_angle answer = distance**0.5 print(answer)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
397,020
397,021
u202145645
python
p02677
import numpy as np a, b, h, m = map(int, input().split()) theta = np.abs((h * 5 / 60 - m / 60) * 2 * np.pi) theta = min(theta, 2 * np.pi - theta) d = np.sqrt(a ** 2 + b ** 2 - 2 * a * b * np.cos(theta)) print(d)
import numpy as np a, b, h, m = map(int, input().split()) theta = np.abs(((h+m/60) * 5 / 60 - m / 60) * 2 * np.pi) theta = min(theta, 2 * np.pi - theta) d = np.sqrt(a ** 2 + b ** 2 - 2 * a * b * np.cos(theta)) print(d)
[ "call.arguments.change" ]
397,036
397,037
u464244643
python
p02677
import math pi = math.pi a = input() a = a.split() A = float(a[0]) B = float(a[1]) H = float(a[2]) M = float(a[3]) Ab = H*5 + 5/60*M Ar = 2*pi * Ab / 60 Br = 2*pi * M / 60 if Ar > Br: Cr = Ar - Br else: Cr = Br - Ar if Cr > pi: Cr -= pi ans = A**2 + B**2 - 2*A*B*math.cos(Cr) print(math.sqrt(ans))
import math pi = math.pi a = input() a = a.split() A = float(a[0]) B = float(a[1]) H = float(a[2]) M = float(a[3]) Ab = H*5 + 5/60*M Ar = 2*pi * Ab / 60 Br = 2*pi * M / 60 if Ar > Br: Cr = Ar - Br else: Cr = Br - Ar if Cr > pi: Cr = 2*pi - Cr ans = A**2 + B**2 - 2*A*B*math.cos(Cr) print(math.sqrt(ans))
[ "assignment.add" ]
397,046
397,047
u122743999
python
p02677
import math #from decimal import Decimal A,B,H,M = map(int,input().split()) Hd = 2*math.pi*H/12 + 5/360*2*math.pi*M/60 Md = 2*math.pi*M/60 Hx = A*math.cos(Hd) Hy = A*math.sin(Hd) Mx = B*math.cos(Md) My = B*math.sin(Md) r = ((Hx - Mx)**2 + (Hy - My)**2)**0.5 print(r)
import math #from decimal import Decimal A,B,H,M = map(int,input().split()) Hd = 2*math.pi*H/12 + 30/360*2*math.pi*M/60 Md = 2*math.pi*M/60 Hx = A*math.cos(Hd) Hy = A*math.sin(Hd) Mx = B*math.cos(Md) My = B*math.sin(Md) r = ((Hx - Mx)**2 + (Hy - My)**2)**0.5 print(r)
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
397,053
397,054
u281152316
python
p02677
a,b,h,m = map(int, input().split()) import math (a**2+b**2-2*a*b*math.cos(math.radians((360*h/12+30*m/60)-360*m/60)))**(1/2)
a,b,h,m = map(int, input().split()) import math print((a**2+b**2-2*a*b*math.cos(math.radians((360*h/12+30*m/60)-360*m/60)))**(1/2))
[ "call.add", "call.arguments.change" ]
397,078
397,079
u107915058
python
p02677
A, B, H, M = map(int,input().split()) import math x = H / 12 * 360 y = M / 60 * 360 ang = abs(y - x) ans_2 = A ** 2 + B ** 2 - 2 * A * B * math.cos(math.radians(ang)) ans = math.sqrt(ans_2) print(ans)
A, B, H, M = map(int,input().split()) import math x = H / 12 * 360 + M / 60 * 30 y = M / 60 * 360 ang = abs(y - x) ans_2 = A ** 2 + B ** 2 - 2 * A * B * math.cos(math.radians(ang)) ans = math.sqrt(ans_2) print(ans)
[ "assignment.change" ]
397,080
397,081
u569776981
python
p02677
import math a, b, h, m = map(int, input().split()) ang = abs(h * 30 - m * 11/2) angle = min(ang, 360-ang) print(angle) c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(angle))) print(c)
import math a, b, h, m = map(int, input().split()) ang = abs(h * 30 - m * 11/2) angle = min(ang, 360-ang) c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(angle))) print(c)
[ "call.remove" ]
397,082
397,083
u689710606
python
p02677
import math A, B, H, M = map(int, input().split()) print((A**2+B**2-2*B*math.cos(math.radians(abs((H*60+M)/2-M*6))))**0.5)
import math A, B, H, M = map(int, input().split()) print((A**2+B**2-2*A*B*math.cos(math.radians(abs((H*60+M)/2-M*6))))**0.5)
[ "expression.operation.binary.add" ]
397,097
397,098
u626337957
python
p02677
A, B, H, M = map(int, input().split()) sitaH = (H*60+M) / 720 * 2 * math.pi sitaM = M/60 * 2 * math.pi posXH = A * math.cos(sitaH) posYH = A * math.sin(sitaH) posXM = B * math.cos(sitaM) posYM = B * math.sin(sitaM) delX = posXH - posXM delY = posYH - posYM d = (delX*delX + delY*delY)**(1/2) print(d)
import math A, B, H, M = map(int, input().split()) sitaH = (H*60+M) / 720 * 2 * math.pi sitaM = M/60 * 2 * math.pi posXH = A * math.cos(sitaH) posYH = A * math.sin(sitaH) posXM = B * math.cos(sitaM) posYM = B * math.sin(sitaM) delX = posXH - posXM delY = posYH - posYM d = (delX*delX + delY*delY)**(1/2) print(d)
[]
397,103
397,104
u038676814
python
p02677
a, b, h, m = map(int,input().split()) angle = 30*h - 5.5*m if angle == 0: print(b-a) exit() import math ans = (a*a + b*b - 2*a*b*math.cos(math.radians(angle)))**0.5 print(ans)
a, b, h, m = map(int,input().split()) angle = 30*h - 5.5*m if angle == 0: print(abs(b-a)) exit() import math ans = (a*a + b*b - 2*a*b*math.cos(math.radians(angle)))**0.5 print(ans)
[ "call.arguments.add", "call.arguments.change" ]
397,111
397,112
u113694671
python
p02677
a, b, h, m = map(int,input().split()) angle = 30*h + 5.5*m import math ans = (a*a + b*b - 2*a*b*math.cos(math.radians(angle)))**0.5 print(ans)
a, b, h, m = map(int,input().split()) angle = 30*h - 5.5*m import math ans = (a*a + b*b - 2*a*b*math.cos(math.radians(angle)))**0.5 print(ans)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
397,113
397,114
u113694671
python
p02677
a, b, h, m = map(int,input().split()) angle = 30*h + 5.5*m import math ans = (a*a + b*b - 2*a*b*math.cos(math.radians(angle)))**0.5 print(ans) print(angle)
a, b, h, m = map(int,input().split()) angle = 30*h - 5.5*m import math ans = (a*a + b*b - 2*a*b*math.cos(math.radians(angle)))**0.5 print(ans)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "call.remove" ]
397,115
397,114
u113694671
python
p02677
from math import cos, radians, sqrt a, b, h, m = map(int, input().split()) angle = radians(h*30 + m / 2- m*6) print(angle) print(sqrt(a**2 + b**2 - 2*a*b*cos(angle)))
from math import cos, radians, sqrt a, b, h, m = map(int, input().split()) angle = radians(h*30 + m / 2- m*6) print(sqrt(a**2 + b**2 - 2*a*b*cos(angle)))
[ "call.remove" ]
397,116
397,117
u769095634
python
p02677
import math A, B, H, M =map(int, input().split()) Hs = H*30 + M*0.5 Ms = 6*M shita = Hs-Ms shita = abs(shita) if shita >= 180: shita = shita - 180 shita = math.radians(shita) C = A*A + B*B - 2*A*B*(math.cos(shita)) print (math.sqrt(C))
import math A, B, H, M =map(int, input().split()) Hs = H*30 + M*0.5 Ms = 6*M shita = Hs-Ms shita = abs(shita) if shita >= 180: shita = 360 - shita shita = math.radians(shita) C = A*A + B*B - 2*A*B*(math.cos(shita)) print (math.sqrt(C))
[ "expression.operation.binary.remove" ]
397,118
397,119
u893661063
python
p02677
import math A, B, H, M =map(int, input().split()) Hs = H*30 + M/2 Ms = 6*M shita = Hs-Ms shita = abs(shita) if shita >= 180: shita = shita - 180 shita = math.radians(shita) C = A*A + B*B - 2*A*B*(math.cos(shita)) print (math.sqrt(C))
import math A, B, H, M =map(int, input().split()) Hs = H*30 + M*0.5 Ms = 6*M shita = Hs-Ms shita = abs(shita) if shita >= 180: shita = 360 - shita shita = math.radians(shita) C = A*A + B*B - 2*A*B*(math.cos(shita)) print (math.sqrt(C))
[ "expression.operation.binary.remove" ]
397,120
397,119
u893661063
python
p02677
import math A, B, H, M = map(int, input().split(' ')) deg = abs((6 * M - (30 * H + 0.5 * M))) % 180 if deg > 180: deg = 360 - deg deg = math.radians(deg) print(math.sqrt((B - A * math.cos(deg)) ** 2 + (A * math.sin(deg)) ** 2))
import math A, B, H, M = map(int, input().split(' ')) deg = abs((6 * M - (30 * H + 0.5 * M))) if deg > 180: deg = 360 - deg deg = math.radians(deg) print(math.sqrt((B - A * math.cos(deg)) ** 2 + (A * math.sin(deg)) ** 2))
[ "expression.operation.binary.remove" ]
397,123
397,124
u418149936
python
p02677
import math a, b, h, m = map(int, input().split()) hrad, mrad = math.pi*(60*h+m)/360, math.pi * m / 30 rad = min(abs(hrad - mrad), math.pi - abs(hrad - mrad)) print((a ** 2 + b ** 2 - 2 * a * b * math.cos(rad))** 0.5)
import math a, b, h, m = map(int, input().split()) hrad, mrad = math.pi * (60 * h + m) / 360, math.pi * m / 30 rad = min(abs(hrad - mrad), 2*math.pi - abs(hrad - mrad)) print((a ** 2 + b ** 2 - 2 * a * b * math.cos(rad))** 0.5)
[ "assignment.change" ]
397,125
397,126
u222668979
python
p02677
A, B, H, M = map(int, input().split()) X, Y = A*math.cos(math.pi*(60*H+M)/360), -A*math.sin(math.pi*(60*H+M)/360) x, y = B*math.cos(math.pi*M/30), -B*math.sin(math.pi*M/30) print(math.sqrt((X-x)**2+(Y-y)**2))
import math A, B, H, M = map(int, input().split()) X, Y = A*math.cos(math.pi*(60*H+M)/360), -A*math.sin(math.pi*(60*H+M)/360) x, y = B*math.cos(math.pi*M/30), -B*math.sin(math.pi*M/30) print(math.sqrt((X-x)**2+(Y-y)**2))
[]
397,127
397,128
u309120194
python
p02677
import math A,B,H,M= map(int,input().split()) kd_a=0.5*(M+60*H) kd_b=6*M rad=math.radians(kd_a-kd_b) X=A**2+B**2-2*A*B*math.cos(rad) print(X) print(X**0.5)
import math A,B,H,M= map(int,input().split()) kd_a=0.5*(M+60*H) kd_b=6*M rad=math.radians(kd_a-kd_b) X=A**2+B**2-2*A*B*math.cos(rad) print(X**0.5)
[ "call.remove" ]
397,152
397,153
u432453907
python
p02677
import math a = [int(s) for s in input().split()] b = int(max([a[0], a[1]])) c = int(min([a[0], a[1]])) d = 0.5 * (a[2] * 60 + a[3]) e = 6 * a[3] f = int(abs(int(d - int(e)))) if f >= 180: f = 360 - f if f != 0 and f!= 180: print(math.sqrt(a[0] ** 2 + a[1] ** 2 - 2 * a[0] * a[1] * math.cos(math.radians(f)))) elif ...
import math a = [int(s) for s in input().split()] b = int(max([a[0], a[1]])) c = int(min([a[0], a[1]])) d = 0.5 * (a[2] * 60 + a[3]) e = 6 * a[3] f = abs(d - int(e)) if f >= 180: f = 360 - f if f != 0 and f!= 180: print(math.sqrt(a[0] ** 2 + a[1] ** 2 - 2 * a[0] * a[1] * math.cos(math.radians(f)))) elif f == 0: ...
[ "call.remove", "call.arguments.change" ]
397,162
397,163
u255898796
python
p02677
a, b, h, m = map(int, input().split()) ax = a * math.cos(math.radians((h/12 + 1/12 * m/60) * 360)) ay = a * math.sin(math.radians((h/12 + 1/12 * m/60) * 360)) bx = b * math.cos(math.radians(m/60 * 360)) by = b * math.sin(math.radians(m/60 * 360)) print(math.sqrt((ax-bx)**2 + (ay-by)**2))
import math a, b, h, m = map(int, input().split()) ax = a * math.cos(math.radians((h/12 + 1/12 * m/60) * 360)) ay = a * math.sin(math.radians((h/12 + 1/12 * m/60) * 360)) bx = b * math.cos(math.radians(m/60 * 360)) by = b * math.sin(math.radians(m/60 * 360)) print(math.sqrt((ax-bx)**2 + (ay-by)**2))
[]
397,166
397,167
u119655368
python
p02677
import math A, B, H, M = map(int, input().split()) print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(abs(30*H + 0.5*M - 60*M)))))
import math A, B, H, M = map(int, input().split()) print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(abs(30*H + 0.5*M - 6*M)))))
[ "call.arguments.change", "expression.operation.binary.change" ]
397,168
397,169
u666844906
python
p02677
import math A, B, H, M = map(int, input().split()) theta = abs(30 * H - 6 * M) if theta > 180: theta = 360 - theta ans = math.sqrt(A ** 2 + B ** 2 - (2 * A * B * math.cos(math.radians(theta)))) print(ans)
import math A, B, H, M = map(int, input().split()) theta = abs(30 * H + 0.5 * M - 6 * M) if theta > 180: theta = 360 - theta ans = math.sqrt(A ** 2 + B ** 2 - (2 * A * B * math.cos(math.radians(theta)))) print(ans)
[ "assignment.change" ]
397,170
397,171
u346818994
python
p02677
import math a,b,h,m=map(int, input().split()) a_x=math.cos(abs(math.radians(60*m)-math.radians(30*h+0.5*m))) print((a**2+b**2-2*a*b*a_x)**0.5)
import math a,b,h,m=map(int, input().split()) a_x=math.cos(abs(math.radians(6*m)-math.radians(30*h+0.5*m))) print((a**2+b**2-2*a*b*a_x)**0.5)
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
397,178
397,179
u777028980
python
p02677
from math import cos, pi A, B, H, M = map(int, input().split()) t1 = 30 * H + M / 60 * 30 t2 = 60 * M ans = A ** 2 + B ** 2 - 2 * A * B * cos(abs(t1 - t2) * pi / 180) print(ans ** 0.5)
from math import cos, pi A, B, H, M = map(int, input().split()) t1 = 30 * H + M / 60 * 30 t2 = 6 * M ans = A ** 2 + B ** 2 - 2 * A * B * cos(abs(t1 - t2) * pi / 180) print(ans ** 0.5)
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
397,180
397,181
u057109575
python
p02677
from math import cos, pi A, B, H, M = map(int, input().split()) t1 = 30 * (H + M / 60) t2 = 60 * M ans = A ** 2 + B ** 2 - 2 * A * B * cos(abs(t1 - t2) * pi / 180) print(ans ** 0.5)
from math import cos, pi A, B, H, M = map(int, input().split()) t1 = 30 * H + M / 60 * 30 t2 = 6 * M ans = A ** 2 + B ** 2 - 2 * A * B * cos(abs(t1 - t2) * pi / 180) print(ans ** 0.5)
[ "assignment.value.change", "expression.operation.binary.change", "literal.number.integer.change" ]
397,182
397,181
u057109575
python
p02677
import math A, B, H, M = map(int, input().split()) arg = H*360/12-M*360/60 print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(arg))))
import math A, B, H, M = map(int, input().split()) arg = H*360/12-M*360/60+M*0.5 print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(arg))))
[ "assignment.change" ]
397,188
397,189
u874320250
python
p02677
import math a,b,h,m = map(float, input().split()) ans = (a**2 + b**2 -2*a*b*math.cos(2*math.pi*(h/12 + m/60/12)))**(1/2) print("%.10f" % ans)
import math a,b,h,m = map(float, input().split()) ans = (a**2 + b**2 -2*a*b*math.cos(2*math.pi*(h/12 + m/60/12 - m/60)))**(1/2) print("%.10f" % ans)
[ "assignment.change" ]
397,194
397,195
u094534261
python
p02677
import math a,b,h,m=map(int, input().split()) h_kaku=(2*math.pi*h)/12 m_kaku=(2*math.pi*m)/60 h_x=a * math.cos(-h_kaku+math.pi/2) h_y=a * math.sin(-h_kaku+math.pi/2) m_x=b * math.cos(-m_kaku+math.pi/2) m_y=b * math.sin(-m_kaku+math.pi/2) nagasa=math.sqrt((h_x-m_x)**2+(h_y-m_y)**2) print(nagasa)
import math a,b,h,m=map(int, input().split()) h_kaku=(2*math.pi*(h+m/60))/12 m_kaku=(2*math.pi*m)/60 h_x=a * math.cos(-h_kaku+math.pi/2) h_y=a * math.sin(-h_kaku+math.pi/2) m_x=b * math.cos(-m_kaku+math.pi/2) m_y=b * math.sin(-m_kaku+math.pi/2) nagasa=math.sqrt((h_x-m_x)**2+(h_y-m_y)**2) print(nagasa)
[]
397,198
397,199
u451417461
python
p02677
import math a,b,h,m=map(int, input().split()) h_kaku=(2*math.pi*h)/12 m_kaku=(2*math.pi*m)/60 h_x=a * math.cos(-h_kaku+math.pi/2) h_y=a * math.sin(-h_kaku+math.pi/2) m_x=b * math.cos(-m_kaku+math.pi/2) m_y=b * math.sin(-m_kaku+math.pi/2) nagasa=math.sqrt((h_x-m_x)**2+(h_y-m_y)**2) print(nagasa)
import math a,b,h,m=map(int, input().split()) h_kaku=(2*math.pi*(h+m/60))/12 m_kaku=(2*math.pi*m)/60 h_x=a * math.cos(-h_kaku+math.pi/2) h_y=a * math.sin(-h_kaku+math.pi/2) m_x=b * math.cos(-m_kaku+math.pi/2) m_y=b * math.sin(-m_kaku+math.pi/2) nagasa=math.sqrt((h_x-m_x)**2+(h_y-m_y)**2) print(nagasa)
[]
397,198
397,200
u451417461
python
p02677
import math a, b, h, m = map(int, input().split()) short = (h*30 + m*0.5) % 360 long = m*6 C = abs(long - short) print(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(min(C,180 - C)))))
import math a, b, h, m = map(int, input().split()) short = (h*30 + m*0.5) % 360 long = m*6 C = abs(long - short) print(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(min(C,360 - C)))))
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change" ]
397,208
397,209
u785266893
python
p02677
import math A = list(map(int,input().split())) a = A[0] b = A[1] h = A[2] m = A[3] c = (m / 60 - h) / 6 * math.pi C = math.sqrt(a**2 + b**2 - 2*a*b* math.cos(c)) print(C)
import math A = list(map(int,input().split())) a = A[0] b = A[1] h = A[2] m = A[3] c = (h - 11 / 60 * m) / 6 * math.pi C = math.sqrt(a**2 + b**2 - 2*a*b* math.cos(c)) print(C)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
397,215
397,216
u167681994
python
p02677
A, B, C, D = map(int, input().split()) rad = 2 * math.pi * (((C / 12)+((5 / 60)*(D / 60))) - (D /60)) if math.cos(rad) == 1: print(abs(A - B)) elif math.cos(rad) == -1: print(A + B) else: print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
import math A, B, C, D = map(int, input().split()) rad = 2 * math.pi * (((C / 12)+((5 / 60)*(D / 60))) - (D /60)) if math.cos(rad) == 1: print(abs(A - B)) elif math.cos(rad) == -1: print(A + B) else: print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad)))
[]
397,219
397,220
u566297428
python
p02677
import math A,B,H,M = map(int,input().split()) C2 = A**2+B**2-2*A*B*math.cos(math.radians(360-(30*H+M*0.5)-6*M)) print(C2**0.5)
import math A,B,H,M = map(int,input().split()) C2 = A**2+B**2-2*A*B*math.cos(math.radians(abs((30*H+M*0.5)-6*M))) print(C2**0.5)
[ "call.arguments.change" ]
397,221
397,222
u912650255
python
p02677
A,B,H,M = map(int,input().split()) C2 = A**2+B**2-2*A*B*math.cos(math.radians(360-(30*H+M*0.5)-6*M)) print(C2**0.5)
import math A,B,H,M = map(int,input().split()) C2 = A**2+B**2-2*A*B*math.cos(math.radians(abs((30*H+M*0.5)-6*M))) print(C2**0.5)
[ "call.arguments.change" ]
397,223
397,222
u912650255
python
p02677
A,B,H,M = map(int,input().split()) C2 = A**2+B**2-2*A*B*math.cos(math.radians((30*H+M*0.5)-6*M)) print(C2**0.5)
import math A,B,H,M = map(int,input().split()) C2 = A**2+B**2-2*A*B*math.cos(math.radians(abs((30*H+M*0.5)-6*M))) print(C2**0.5)
[ "call.add", "call.arguments.change" ]
397,224
397,222
u912650255
python
p02677
from math import sqrt, cos a, b, h, m = map(int, input().split()) pi = 3.141592653589793238 tmp = abs(m*6-(h*30+m/2)) arg = min(tmp, 180-tmp) print(sqrt(a**2+b**2-2*a*b*cos(arg*pi/180)))
from math import sqrt, cos a, b, h, m = map(int, input().split()) pi = 3.141592653589793238 tmp = abs(m*6-(h*30+m/2)) arg = min(tmp, 360-tmp) print(sqrt(a**2+b**2-2*a*b*cos(arg*pi/180)))
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
397,225
397,226
u247442310
python
p02677
import math import numpy as np h_len,s_len,h_time,s_time = map(int,input().split()) #h_time = h_time%24 h_time = h_time%12 h_rad = ((h_time*60 + s_time)/720.0)*360 s_rad = (s_time/60.0)*360 sub_rad = abs(h_rad-s_rad) if sub_rad%180!= 0 and sub_rad >= 180: sub_rad -= 180 #print([h_rad,s_rad,sub_rad]) #print([h_len...
import math import numpy as np h_len,s_len,h_time,s_time = map(int,input().split()) #h_time = h_time%24 h_time = h_time%12 h_rad = ((h_time*60 + s_time)/720.0)*360 s_rad = (s_time/60.0)*360 sub_rad = abs(h_rad-s_rad) if sub_rad%180!= 0 and sub_rad >= 180: sub_rad -= 360 #print([h_rad,s_rad,sub_rad]) #print([h_len...
[ "literal.number.integer.change" ]
397,229
397,230
u180172332
python
p02677
import math A,B,H,M = map(int, input().split()) a = 360*H/12+30*M/60 b = 360*M/60 c = abs(a-b) d = A**2+B**2-2*A*B*math.sin(math.radians(c)) print(math.sqrt(d))
import math A,B,H,M = map(int, input().split()) a = 360*H/12+30*M/60 b = 360*M/60 c = abs(a-b) d = A**2+B**2-2*A*B*math.cos(math.radians(c)) print(math.sqrt(d))
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
397,233
397,234
u118760114
python
p02677
import math A,B,H,M=map(int, input().split()) a=math.pi b=math.cos(a*((48*H+M)/360)) Z=A**2+B**2-2*A*B*b print(Z**(1/2))
import math A,B,H,M=map(int, input().split()) a=math.pi b=math.cos(a*((60*H-11*M)/360)) Z=A**2+B**2-2*A*B*b print(Z**(1/2))
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.arithmetic.change" ]
397,244
397,243
u729119068
python
p02677
import math a, b, h, m = map(int, input().split()) h_posi = 30*h + 0.5*m m_posi = 6*m kakudo = abs(h_posi - m_posi) kakudo = min(kakudo, 360-kakudo) cos = round(math.cos(math.radians(kakudo)), 6) print((a**2 + b**2 - 2*a*b*cos)**0.5)
import math a, b, h, m = map(int, input().split()) h_posi = 30*h + 0.5*m m_posi = 6*m kakudo = abs(h_posi - m_posi) kakudo = min(kakudo, 360-kakudo) cos = round(math.cos(math.radians(kakudo)), 18) print((a**2 + b**2 - 2*a*b*cos)**0.5)
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change" ]
397,248
397,246
u842388336
python
p02677
import math A, B, H, M = map(int, input().split()) diff = abs(30 * H - 6 * M) rad = math.radians(diff) ans = math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(rad)) print(ans)
import math A, B, H, M = map(int, input().split()) diff = abs(30 * H + 0.5 * M - 6 * M) rad = math.radians(diff) ans = math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(rad)) print(ans)
[ "assignment.change" ]
397,251
397,252
u647087591
python
p02677
import math A,B,H,M=[int(i) for i in input().split()] thetaH=2.0*math.pi*H/12 thetaM=2.0*math.pi*M/60 L2=(A*math.cos(thetaH)-B*math.cos(thetaM))**2+(A*math.sin(thetaH)-B*math.sin(thetaM))**2 L=math.sqrt(L2) print(L)
import math A,B,H,M=[int(i) for i in input().split()] thetaH=2.0*math.pi*(H+M/60)/12 thetaM=2.0*math.pi*M/60 L2=(A*math.cos(thetaH)-B*math.cos(thetaM))**2+(A*math.sin(thetaH)-B*math.sin(thetaM))**2 L=math.sqrt(L2) print(L)
[]
397,253
397,254
u541929993
python
p02677
import sys import math import itertools as it def I():return int(sys.stdin.readline().replace("\n","")) def I2():return map(int,sys.stdin.readline().replace("\n","").split()) def S():return str(sys.stdin.readline().replace("\n","")) def L():return list(sys.stdin.readline().replace("\n","")) def Intl():return [int(k) fo...
import sys import math import itertools as it def I():return int(sys.stdin.readline().replace("\n","")) def I2():return map(int,sys.stdin.readline().replace("\n","").split()) def S():return str(sys.stdin.readline().replace("\n","")) def L():return list(sys.stdin.readline().replace("\n","")) def Intl():return [int(k) fo...
[ "call.remove" ]
397,255
397,256
u854685063
python
p02677
import math a, b, h, m = map(int, input().split()) # 時針・・・一時間で30度、一分で0.5度 angle_a = (30*h+m/2) * math.pi /180 # 秒針・・・一分間で6度 angle_b = m/30 * math.pi coordinate_a = [a * math.cos(angle_a), a * math.sin(angle_a)] coordinate_b = [b * math.cos(angle_b), b * math.sin(angle_b)] diff_a_b = [abs(coordinate_a[0]-coordinate_...
import math a, b, h, m = map(int, input().split()) # 時針・・・一時間で30度、一分で0.5度 angle_a = (30*h+m/2) * math.pi /180 # 秒針・・・一分間で6度 angle_b = m/30 * math.pi coordinate_a = [a * math.cos(angle_a), a * math.sin(angle_a)] coordinate_b = [b * math.cos(angle_b), b * math.sin(angle_b)] diff_a_b = [abs(coordinate_a[0]-coordinate_...
[ "call.remove" ]
397,259
397,260
u867408000
python
p02677
import math a,b,h,m = map(int, input().split()) rad = math.pi * (-h/12 - (m/60)/12 + m/60) rs = float(a*a + b*b) - float(2*a*b) * math.cos(rad) print(math.sqrt(rs))
import math a,b,h,m = map(int, input().split()) rad = math.pi *2* (-h/12 - (m/60)/12 + m/60) rs = float(a*a + b*b) - float(2*a*b) * math.cos(rad) print(math.sqrt(rs))
[ "assignment.change" ]
397,263
397,264
u720065198
python
p02677
import math def colon(): input_value = [int(i) for i in input('Enter values: ').split()] hour_hand = input_value[0] minute_hand = input_value[1] hour = input_value[2] minute = input_value[3] degree = (((hour * 60 + minute) * 360)/720) - ((minute * 360)/60) cos = math.cos(math.radians(degr...
import math def colon(): input_value = [int(i) for i in input().split()] hour_hand = input_value[0] minute_hand = input_value[1] hour = input_value[2] minute = input_value[3] degree = (((hour * 60 + minute) * 360)/720) - ((minute * 360)/60) cos = math.cos(math.radians(degree)) answer...
[]
397,271
397,272
u236978474
python
p02677
##C A,B,H,M = map(int,input().split()) ##角度の計算 C=(H*30-M*6) if C < 0: C = -C import math ans = A**2 + B**2 -2*A*B*math.cos(math.radians(C)) print(math.sqrt(ans))
##C A,B,H,M = map(int,input().split()) ##角度の計算 C=(H*30+M*0.5-M*6) if C < 0: C = -C import math ans = A**2 + B**2 -2*A*B*math.cos(math.radians(C)) print(math.sqrt(ans))
[ "assignment.change" ]
397,273
397,274
u799978560
python
p02677
import math a, b, h, m = map(int, input().split()) rh = h*30 + m*0.5 rm = m*60 angleC = math.radians(abs(rh - rm)) if angleC > math.pi: angleC = math.pi*2 - angleC c = a**2 + b**2 - 2*a*b * math.cos(angleC) print(math.sqrt(c))
import math a, b, h, m = map(int, input().split()) rh = h*30 + m*0.5 rm = m*6 angleC = math.radians(abs(rh - rm)) if angleC > math.pi: angleC = math.pi*2 - angleC c = a**2 + b**2 - 2*a*b * math.cos(angleC) print(math.sqrt(c))
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
397,275
397,276
u804711544
python
p02677
import math a, b, h, m = map(int, input().split()) diff_hm = abs(h*30 - m*6) print(math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(diff_hm))))
import math a, b, h, m = map(int, input().split()) diff_hm = abs(h*30 + m*0.5 - m*6) print(math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(diff_hm))))
[ "assignment.change" ]
397,289
397,290
u409806558
python
p02677
import math from decimal import Decimal as dec def main(): a, b, h, m = map(int, input().split()) deg = abs(60*m-(30*h+m/2)) if not deg: print(abs(a-b)) elif deg == 180: print(a+b) else: deg = deg if deg < 180 else 360 - deg y = dec(math.radians(deg)) x = dec...
import math from decimal import Decimal as dec def main(): a, b, h, m = map(int, input().split()) deg = abs(6*m-(30*h+m/2)) if not deg: print(abs(a-b)) elif deg == 180: print(a+b) else: deg = deg if deg < 180 else 360 - deg y = dec(math.radians(deg)) x = dec(...
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
397,295
397,296
u906501980
python
p02677
import math A, B, H, M = map(int, input().split()) h_hand = H*30-M*0.5 m_hand = 6 * M diff_hand = abs(h_hand - m_hand) print((A**2+B**2-2*A*B*math.cos(math.radians(diff_hand)))**0.5)
import math A, B, H, M = map(int, input().split()) h_hand = H*30+M*0.5 m_hand = 6 * M diff_hand = abs(h_hand - m_hand) print((A**2+B**2-2*A*B*math.cos(math.radians(diff_hand)))**0.5)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
397,297
397,298
u245870380
python