Submission #13309145


Source Code Expand

Copy
import sys
def input(): return sys.stdin.readline().rstrip()
import math
def main():
    a,b,h,m=map(int,input().split())
    theta_a=(60*h+m)*2*math.pi/720
    theta_b=m*2*math.pi/60
    print(math.sqrt((a*math.cos(theta_a)-b*math.cos(theta_b))**2+(a*math.sin(theta_a)-b*math.sin(theta_b))**2))

if __name__=='__main__':
    main()

Submission Info

Submission Time
Task C - : (Colon)
User charter
Language Python (3.8.2)
Score 300
Code Size 342 Byte
Status
Exec Time 22 ms
Memory 9580 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 300 / 300
Status
× 2
× 30
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
Subtask1 sample_01.txt, sample_02.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt, sub1_16.txt, sub1_17.txt, sub1_18.txt, sub1_19.txt, sub1_20.txt, sub1_21.txt, sub1_22.txt, sub1_23.txt, sub1_24.txt, sub1_25.txt, sub1_26.txt, sub1_27.txt, sub1_28.txt
Case Name Status Exec Time Memory
sample_01.txt 18 ms 9228 KB
sample_02.txt 22 ms 9228 KB
sub1_01.txt 16 ms 9332 KB
sub1_02.txt 17 ms 9236 KB
sub1_03.txt 18 ms 9224 KB
sub1_04.txt 20 ms 9228 KB
sub1_05.txt 19 ms 9320 KB
sub1_06.txt 17 ms 9260 KB
sub1_07.txt 21 ms 9220 KB
sub1_08.txt 17 ms 9220 KB
sub1_09.txt 17 ms 9224 KB
sub1_10.txt 18 ms 9212 KB
sub1_11.txt 17 ms 9452 KB
sub1_12.txt 19 ms 9320 KB
sub1_13.txt 22 ms 9220 KB
sub1_14.txt 18 ms 9388 KB
sub1_15.txt 18 ms 9220 KB
sub1_16.txt 18 ms 9452 KB
sub1_17.txt 17 ms 9260 KB
sub1_18.txt 20 ms 9400 KB
sub1_19.txt 18 ms 9580 KB
sub1_20.txt 20 ms 9396 KB
sub1_21.txt 19 ms 9520 KB
sub1_22.txt 17 ms 9100 KB
sub1_23.txt 21 ms 9396 KB
sub1_24.txt 17 ms 9388 KB
sub1_25.txt 20 ms 9396 KB
sub1_26.txt 18 ms 9324 KB
sub1_27.txt 20 ms 9520 KB
sub1_28.txt 17 ms 9220 KB