buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
// prototype declaration
// gloval variable
double pi = 3.1415926535897932384626433;
int main(void) {
double a, b;
double h, m;
scanf("%lf %lf %lf %lf", &a, &b, &h, &m);
double ans = 0;
double arg = fabs((11 * m - 60 * h) * pi / 360);
ans = sqrt(b *... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
// prototype declaration
// gloval variable
double pi = 3.1415926535897932384626433;
int main(void) {
double a, b;
double h, m;
scanf("%lf %lf %lf %lf", &a, &b, &h, &m);
double ans = 0;
double arg = fabs((11 * m - 60 * h) * pi / 360);
ans = sqrt(b *... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 111 |
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))))) | [["-", 3, 4, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 31, 612]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
const double PI = acos(-1);
double calc(int a, int b, double c) {
double ans = sqrt(a * a + b * b - 2 * a * b * cos(c));
return ans;
}
int main() {
int a, b, h, m;
cin... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
const double PI = acos(-1);
double calc(int a, int b, double c) {
double ans = sqrt(a * a + b * b - 2 * a * b * cos(c));
return ans;
}
int main() {
int a, b, h, m;
cin... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 166 |
/*
Author : DemonStar
*/
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
#define ordered_set \
tre... | /*
Author : DemonStar
*/
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
#define ordered_set \
tre... | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 110], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]] | 1 | 915 |
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)
| [["-", 31, 657, 31, 23, 0, 657, 31, 657, 31, 22], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 31, 22], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 31, 23, 0, 657, 12, 657, 31, 657, 31, 612], ["-", 12, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["-", 12, 657, 31, 657, 31, 23, 0, 657, 12, 22], ["+", 31, 657, 31, 23, 0... | 5 | 89 |
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))) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 123 |
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) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 69 |
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))) | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 612]] | 5 | 85 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
using ld = long double;
int main(void) {
int a, b, h, m;
cin >> a >> b >> h >> m;
int hm_to_min = h * 60 + m;
int min_day = 12 * 60;
// ld h_angle = ((ld)hm_to_min / min_day);
ld h_angle = (... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
using ld = long double;
int main(void) {
int a, b, h, m;
cin >> a >> b >> h >> m;
int hm_to_min = h * 60 + m;
int min_day = 12 * 60;
// ld h_angle = ((ld)hm_to_min / min_day);
ld h_angle = (... | [["+", 49, 50, 51, 23, 0, 16, 12, 16, 17, 85], ["+", 49, 50, 51, 23, 0, 16, 12, 16, 12, 13]] | 1 | 157 |
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))
| [["-", 12, 657, 12, 657, 12, 652, 63, 319, 319, 22], ["+", 12, 657, 12, 657, 12, 652, 63, 319, 319, 22]] | 5 | 86 |
/* / \ (Hello)//JSM//*/
/* /*****\ */
/* jai shree mataji / \ |\| |_| $ |-| K */
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <string.h>
#i... | /* / \ (Hello)//JSM//*/
/* /*****\ */
/* jai shree mataji / \ |\| |_| $ |-| K */
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <string.h>
#i... | [["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 17, 72], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 17, 85], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 1,273 |
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)) | [["-", 0, 657, 31, 23, 0, 657, 31, 657, 31, 612], ["+", 0, 657, 31, 23, 0, 657, 31, 657, 31, 612], ["-", 12, 23, 0, 657, 31, 23, 0, 657, 17, 72], ["+", 12, 23, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 31, 612], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 17, 48]] | 5 | 74 |
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) | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double h_angle = 2 * M_PI * (h + m / 60.0) / 12.0;
double m_angle = 2 * M_PI * m / 60;
// complex<double> p1 = (double)a * (cos(h_angle) + 1i * sin(h_angle));
// complex<double> p2 = (double)b * (cos(m_an... |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double h_angle = 2 * M_PI * (h + m / 60.0) / 12.0;
double m_angle = 2 * M_PI * m / 60;
// complex<double> p1 = (double)a * (cos(h_angle) + 1i * sin(h_angle));
// complex<double> p2 = (double)b * (cos(m_an... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 144 |
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) | [["+", 12, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 3, 4, 0, 657, 31, 657, 12, 657, 31, 531], ["+", 3, 4, 0, 657, 31, 657, 12, 657, 17, 48], ["+", 3, 4, 0, 657, 31, 657, 12, 657, 12, 22]] | 5 | 73 |
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)
| [["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 24], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 17, 72], ["+", 31, 657, 12, 23, 0, 657, 12, 657, 31, 22], ["+", 31, 657, 12, 23, 0, 657, 12, 657, 17, 85], ["+", 31, 657, 12, 23, 0, 657, 12, 657, 12, 612], ["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 25]] | 5 | 105 |
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... | [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 283 |
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_... | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 162 |
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))
| [["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48]] | 5 | 83 |
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
cout << fixed << setprecision(8);
double h, m, a, b;
cin >> a >> b >> h >> m;
double theta = (((h + m / 60) * 330) / 360) * (2 * acos(-1));
cout << sqrt(a * a + b * b - 2 * a * b * cos(theta));
}
| #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
cout << fixed << setprecision(10);
double h, m, a, b;
cin >> a >> b >> h >> m;
double theta = (((h + m / 60) * 330) / 360) * (2 * acos(-1));
cout << sqrt(a * a + b * b - 2 * a * b * cos(theta));
}
| [["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13]] | 1 | 96 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 31, 13], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 17, 48]] | 1 | 354 |
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<ll, ll> pll;
const double PI = 2 * acos(0.0);
int a, b, h, m;
int main() {
ios_base::sync_with_stdio(0... | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<ll, ll> pll;
const double PI = 2 * acos(0.0);
double a, b, h, m;
int main() {
ios_base::sync_with_stdi... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 110], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 6... | 1 | 191 |
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... | [["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 654], ["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 6], ["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 655]] | 5 | 127 |
##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)) | [["+", 0, 662, 12, 23, 0, 657, 31, 657, 17, 72], ["+", 12, 23, 0, 657, 31, 657, 12, 657, 31, 22], ["+", 12, 23, 0, 657, 31, 657, 12, 657, 17, 48], ["+", 12, 23, 0, 657, 31, 657, 12, 657, 12, 531]] | 5 | 80 |
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))
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 96 |
#include <math.h>
#include <stdio.h>
#define PI 3.14159265358979323846264338327950L
int main() {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
long double rad = PI * 2 *
((long double)h / 12.0 + ((long double)m / 60.0) / 12.0 -
(long double)m / 60.0);
long doubl... | #include <math.h>
#include <stdio.h>
#define PI 3.14159265358979323846264338327950L
int main(void) {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
long double rad = PI * 2 *
((long double)h / 12.0 + ((long double)m / 60.0) / 12.0 -
(long double)m / 60.0);
long dou... | [["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 129 |
#include <bits/stdc++.h>
// #include <cmath>
using namespace std;
int main(void) {
// Your code here!
int A, B, H, M;
cin >> A >> B >> H >> M;
double deg = 6 * M - 30 * H - M / 2; //
const long double pie = acos(-1.0L);
double rad = deg * (pie / 180);
double coss = cos(rad);
cout << fixed << setprecisi... | #include <bits/stdc++.h>
// #include <cmath>
using namespace std;
int main(void) {
// Your code here!
int A, B, H, M;
cin >> A >> B >> H >> M;
double deg = 6 * M - 30 * H - M / 2.0; //
const long double pie = acos(-1.0L);
double rad = deg * pie / 180;
double coss = cos(rad);
cout << fixed << setprecisi... | [["-", 0, 43, 49, 50, 51, 16, 12, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 111 |
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))))
| [["+", 12, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 3, 4, 0, 657, 31, 657, 12, 657, 31, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 657, 17, 48], ["+", 3, 4, 0, 657, 31, 657, 12, 657, 12, 531]] | 5 | 67 |
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(... | [["-", 12, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 12, 652, 3, 4, 0, 657, 31, 657, 31, 612]] | 5 | 152 |
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)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 76 |
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, h, m;
double ang, rad, ans;
static const double pi = 3.141592653589793;
cin >> a >> b >> h >> m;
ang = 30 * h + 0.5 * m - 6 * m;
if (ang == 0) {
ans = b - a;
cout << fixed << s... | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, h, m;
double ang, rad, ans;
static const double pi = 3.141592653589793;
cin >> a >> b >> h >> m;
ang = 30 * h + 0.5 * m - 6 * m;
if (ang == 0) {
ans = abs(b - a);
cout << fixed... | [["+", 64, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]] | 1 | 178 |
import math
a ,b, h, m = map(int, input().split())
arg = math.radians(((h*60+m)*360/(12*60))-((m*360)/60))
dist=math.sqrt(a**2+b**2-2*a*b*abs(math.cos(arg)))
print(dist) | import math
a ,b, h, m = map(int, input().split())
arg = math.radians(((h*60+m)*360/(12*60))-((m*360)/60))
dist=math.sqrt(a**2+b**2-2*a*b*math.cos(arg))
print(dist) | [["-", 3, 4, 0, 657, 12, 657, 12, 652, 63, 22], ["-", 0, 657, 12, 657, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 90 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define PI 3.14159265
const int M = 3e3 + 5;
ld a, b, h, m;
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> a >> b >> h >> m;
ld ang_h = (h * 360.0) / 12.0 + 0.5 * m, ang_m = (m * 360.0) ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define PI 3.141592653589793238
const int M = 3e3 + 5;
ld a, b, h, m;
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> a >> b >> h >> m;
ld ang_h = (h * 360.0) / 12.0 + 0.5 * m, ang_m = (m... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 161 |
#include <bits/stdc++.h>
using namespace std;
#define sws \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define INFINITO... | #include <bits/stdc++.h>
using namespace std;
#define sws \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define INFINITO... | [["+", 0, 16, 12, 16, 31, 16, 31, 16, 31, 13], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 16, 12, 16, 31, 16, 17, 48]] | 1 | 151 |
import math
a,b,h,m=map(int,input().split())
def kakudo(h,m):
jikan=30*h+0.5*m
fun=60*m
k=min(abs(jikan-fun),360-abs(jikan-fun))
k=k*math.pi/180
return k
def cal(k):
c=a**2+b**2-2*a*b*math.cos(k)
return c**0.5
ans=cal(kakudo(h,m))
print(ans)
| import math
a,b,h,m=map(int,input().split())
def kakudo(hour,mini):
jikan=30*hour+0.5*mini
fun=6*mini
k=min(abs(jikan-fun),360-abs(jikan-fun))
k=k*math.pi/180
return k
def cal(k):
c=a**2+b**2-2*a*b*math.cos(k)
return c**0.5
ans=cal(kakudo(h,m))
print(ans)
| [["-", 36, 36, 0, 656, 0, 14, 54, 54, 0, 22], ["+", 36, 36, 0, 656, 0, 14, 54, 54, 0, 22], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, ... | 5 | 122 |
#include <bits/stdc++.h>
#include <numeric>
#include <set>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(a) a.begin(), a.end()
using ll = long long;
using namespace std;
// ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
// const double PI = acos(-1);
// int gcd(int x, int y) { return (x % y)? gcd(... | #include <bits/stdc++.h>
#include <numeric>
#include <set>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(a) a.begin(), a.end()
using ll = long long;
using namespace std;
const double PI = acos(-1);
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double th = double(h * 60 + m) / 720 * 2 * PI;... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48]] | 1 | 180 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int h = scanner.nextInt();
int m = scanner.nextInt();
double angleMinute = ((double)m) * 6;
double angle... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int h = scanner.nextInt();
int m = scanner.nextInt();
double angleMinute = ((double)m) * 6;
double angle... | [["-", 0, 1, 0, 11, 12, 510, 64, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 510, 64, 16, 31, 499], ["-", 0, 1, 0, 11, 12, 510, 64, 16, 12, 499], ["+", 0, 1, 0, 11, 12, 510, 64, 16, 12, 22]] | 3 | 180 |
#include <bits/stdc++.h>
using namespace std;
#define nin(n) \
int n; \
cin >> n;
#define kin(k) \
int k; ... | #include <bits/stdc++.h>
using namespace std;
#define nin(n) \
int n; \
cin >> n;
#define kin(k) \
int k; ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 114 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lowbit(a) ((a) & -(a))
#define clean(a, b) memset(a, b, sizeof(a))
const int mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
const int maxn = 1e6 + 9;
const double pi = acos(-1);
int _;
//=============================================================... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lowbit(a) ((a) & -(a))
#define clean(a, b) memset(a, b, sizeof(a))
const int mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
const int maxn = 1e6 + 9;
const double pi = acos(-1);
int _;
//=============================================================... | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 110], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]] | 1 | 172 |
import math as mt
A,B,H,M = map(int, input().split())
if abs(30*H+0.5*M-6*M) >= 180:
d = abs(30*H+0.5*M-6*M) - 180
else:
d = abs(30*H+0.5*M-6*M)
ans = mt.sqrt(A**2+B**2-2*A*B*mt.cos(mt.radians(d)))
print(ans) | import math as mt
A,B,H,M = map(int, input().split())
if abs(30*H+0.5*M-6*M) >= 180:
d = 360 - abs(30*H+0.5*M-6*M)
else:
d = abs(30*H+0.5*M-6*M)
ans = mt.sqrt(A**2+B**2-2*A*B*mt.cos(mt.radians(d)))
print(ans) | [["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 114 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
h = h * 30 + m * 0.5, m *= 60;
double theta = abs(h - m) * 3.14159265358979323846264338327950 / 180;
double ans = sqrt(a * a + b * b - 2... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
h = h * 30 + m * 0.5, m *= 6;
double theta = abs(h - m) * 3.14159265358979323846264338327950 / 180;
double ans = sqrt(a * a + b * b - 2 ... | [["-", 8, 9, 0, 1, 0, 34, 12, 11, 12, 13], ["+", 8, 9, 0, 1, 0, 34, 12, 11, 12, 13]] | 1 | 114 |
from math import cos
from math import radians
a,b,h,m=map(int,input().split())
alpha=5/2*(h*60+m)
beta=6*m
n=radians(min(abs(alpha-beta),360-abs(alpha-beta)))
ans=(a**2+b**2-2*a*b*cos(n))**(1/2)
print(ans) | from math import cos
from math import radians
a,b,h,m=map(int,input().split())
alpha=(h*60+m)/2
beta=6*m
n=radians(min(abs(alpha-beta),360-abs(alpha-beta)))
ans=(a**2+b**2-2*a*b*cos(n))**(1/2)
print(ans) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 85], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 101 |
#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
double ang = (30.0 * h + 0.5 * m) - (6.0 * m) * pi / 180.0;
double ans = 1.0 * a * a + 1.0 * b * b - 2.0 * a * b * cos(ang);
printf("%.20lf\n", sqrt(ans));
return 0;
} | #include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
double ang = ((30.0 * h + 0.5 * m) - (6.0 * m)) * pi / 180.0;
double ans = 1.0 * a * a + 1.0 * b * b - 2.0 * a * b * cos(ang);
printf("%.20lf\n", sqrt(ans));
return 0;
... | [["+", 31, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25]] | 1 | 114 |
import math
A, B, H, M = map(int, input().split())
deg_long = M * 6
deg_short = 30 * H + M / 2
if abs(deg_long - deg_short) > 180:
rad = math.radians(360 - abs(deg_long - deg_short))
else:
math.radians(abs(deg_long - deg_short))
print(math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(rad))) | import math
A, B, H, M = map(int, input().split())
rad = 0
deg_long = M * 6
deg_short = 30 * H + M / 2
if abs(deg_long - deg_short) > 180:
rad = math.radians(360 - abs(deg_long - deg_short))
else:
rad = math.radians(abs(deg_long - deg_short))
print(math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(rad))) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32]] | 5 | 102 |
import math
A, B, H, M = map(int, input().split())
deg_long = M * 6
deg_short = 30 * H + M / 2
rad = math.radians( min(deg_long - deg_short, 360-(deg_long-deg_short)))
print( math.sqrt(A **2 + B ** 2 - 2*A*B*cos(rad)) ) | import math
A, B, H, M = map(int, input().split())
deg_long = M * 6
deg_short = 30 * H + M / 2
rad = math.radians( min(deg_long - deg_short, 360-(deg_long-deg_short)))
print( math.sqrt(A **2 + B ** 2 - 2* A * B* math.cos(rad)) ) | [["+", 0, 657, 12, 657, 12, 652, 63, 319, 500, 22], ["+", 0, 657, 12, 657, 12, 652, 63, 319, 0, 131]] | 5 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
printf("%.12lf",
sqrt(a * a + b * b -
2 * a * b * cos(M_PI * 2 * ((h + m / 60) / 12 - m / 60))));
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
printf("%.12lf\n",
sqrt(a * a + b * b -
2 * a * b * cos(2 * M_PI * ((h + m / 60) / 12 - m / 60))));
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 12, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 12, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 12, 22]] | 1 | 78 |
// 2020-06-03
#include <bits/stdc++.h>
using namespace std;
#define loop(v, st, en) for (int v = st; v < en; v++)
#define loopdesc(v, st, en) for (int v = st; v >= en; v--)
#define INF 1E9
#define clr(v, d) memset(v, d, sizeof(v))
#define pb push_back
#define MP make_pair
#define P(x) cout << #x << " = { " << x << " }\... | // 2020-06-03
#include <bits/stdc++.h>
using namespace std;
#define loop(v, st, en) for (int v = st; v < en; v++)
#define loopdesc(v, st, en) for (int v = st; v >= en; v--)
#define INF 1E9
#define clr(v, d) memset(v, d, sizeof(v))
#define pb push_back
#define MP make_pair
#define P(x) cout << #x << " = { " << x << " }\... | [["-", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22]] | 1 | 289 |
#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
typedef long long ll;
typedef long double ld;
const ld PI = 2.0 * acos(0.0);
ld rad(ld a) { return a * PI / 180; }
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int a, b, h, m;
ci... | #include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
typedef long long ll;
typedef long double ld;
const ld PI = 2.0 * acos(0.0);
ld rad(ld a) { return a * PI / 180; }
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int a, b, h, m;
ci... | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 199 |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <new>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <new>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
... | [["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 151 |
import math
a,b,h,m = map(int,input().split())
print(a**2+b**2-2*a*b*math.cos(math.radians(h*30 - m*5.5)))**0.5 | import math
a,b,h,m = map(int,input().split())
print((a**2+b**2-2*a*b*math.cos(math.radians(h*30 - m*5.5)))**0.5) | [["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 58 |
import math
a,b,h,m = map(int,input().split())
print((a**2+b**2-(2*a*b*math.cos(math.radians(h*30 - 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(h*30 - m*5.5))))**0.5) | [["-", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 531]] | 5 | 63 |
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if -180 < X - Y < 0:
Z = Y - X
elif X - Y <= -180:
Z = 360 -(Y - X)
elif 180 > X - Y >= 0:
z = X - Y
elif X - Y >= 180:
z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)
print(ANS) | import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if -180 < X - Y < 0:
z = Y - X
elif X - Y <= -180:
z = 360 -(Y - X)
elif 180 > X - Y >= 0:
z = X - Y
elif X - Y >= 180:
z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)
print(ANS) | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22]] | 5 | 137 |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
const double PI = acos(-1.0);
int main() {
int A, B, H, M;
cin >> A >> B >> H >> M;
double alpha = (60 * H) + M / 720 * (2 * PI); // 長針の進んだ距離
double beta = M / 60 * (2 * PI); // 短針の進んだ距離
double theta = alpha - be... | #include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
const double PI = acos(-1.0);
int main() {
double A, B, H, M;
cin >> A >> B >> H >> M;
double alpha = (60 * H + M) / 720 * (2 * PI); // 長針の進んだ距離
double beta = M / 60 * (2 * PI); // 短針の進んだ距離
double theta = alpha -... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25], ["+", 49, 50, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 128 |
import math
a, b, h, m = map(int, input().split())
angle = 30*h - 6*m
if(angle >= 180):
angle = 360 - angle
print((a**2+b**2-(2*a*b*math.cos(math.radians(angle))))**0.5) | import math
a, b, h, m = map(int, input().split())
angle = 30*h - 5.5*m
if(angle >= 180):
angle = 360 - angle
print((a**2+b**2-(2*a*b*math.cos(math.radians(angle))))**0.5) | [["-", 0, 1, 0, 662, 12, 657, 12, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 31, 531]] | 5 | 77 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using namespace std;
template <typename T> using vec = std::vector<T>;
double deg_to_rad(double degree) {
double pi = acos(-1);
double rad = pi * degree / 180;
return rad;
}
int ma... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using namespace std;
template <typename T> using vec = std::vector<T>;
double deg_to_rad(double degree) {
double pi = acos(-1);
double rad = pi * degree / 180;
return rad;
}
int ma... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 165 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using namespace std;
template <typename T> using vec = std::vector<T>;
int main() {
static const double pi = 3.141592653589793;
double A, B;
double H, M;
cin >> A >> B >> H >> M;... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using namespace std;
template <typename T> using vec = std::vector<T>;
int main() {
static const double pi = 3.141592653589793;
double A, B;
double H, M;
cin >> A >> B >> H >> M;... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 168 |
import math
A,B,H,M = int(input().split())
Ad = H * 30 + M * 0.5
Bd = M * 6
difAB = abs(Ad - Bd)
if difAB >=180:
difAB = 360-difAB
print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(difAB)))) | import math
A,B,H,M = map(int,input().split())
Ad = H * 30 + M * 0.5
Bd = M * 6
difAB = abs(Ad - Bd)
if difAB >=180:
difAB = 360-difAB
print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(difAB)))) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]] | 5 | 85 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI = acos(-1.0);
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
double x1 = h * 30 + m * 0.5;
double x2 = 6 * m;
double jd = fabs(x1 - x2);
if (jd >= 180)
jd -= 180;
double g = jd * 1.0 / 180.0 * PI;
double... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI = acos(-1.0);
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
double x1 = h * 30 + m * 0.5;
double x2 = 6 * m;
double jd = fabs(x1 - x2);
if (jd >= 180)
jd = 360 - jd;
double g = jd * 1.0 / 180.0 * PI;
do... | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 110], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]] | 1 | 132 |
import math
A,B,H,M = map(int,input().split())
AX = A * math.cos(2*math.pi*(H/12.+M/12./60.))
AY = A * math.sin(2*math.pi*(H/12.+M/12./60.))
BX = B * math.cos(2*math.pi*M/60.)
BY = B * math.sin(2*math.pi*M/60.2)
ans = math.sqrt((AX-BX)**2+(AY-BY)**2)
print(ans) | import math
A,B,H,M = map(int,input().split())
AX = A * math.cos(2*math.pi*(H/12.+M/12./60.))
AY = A * math.sin(2*math.pi*(H/12.+M/12./60.))
BX = B * math.cos(2*math.pi*M/60.)
BY = B * math.sin(2*math.pi*M/60.)
ans = math.sqrt((AX-BX)**2+(AY-BY)**2)
print(ans) | [["-", 12, 657, 12, 652, 3, 4, 0, 657, 12, 531], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 531]] | 5 | 136 |
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
ld rad(ld degree) { return degree * acos(-1) / 180.0; }
int main() {
ld a, b, h, m;
cin >> a >> b >> h >> m;
ld x = (30.0 * h + m / 2.0);
if (m == 0) {
x = min(x, 360 - x);
} else {
if (x > m) {
x = min(x - m, m + 360 - ... | #include <bits/stdc++.h>
using namespace std;
typedef long double ld;
ld rad(ld degree) { return degree * acos(-1) / 180.0; }
int main() {
ld a, b, h, m;
cin >> a >> b >> h >> m;
ld x = (30.0 * h + m / 2.0);
m *= 6;
if (m == 0) {
x = min(x, 360 - x);
} else {
if (x > m) {
x = min(x - m, ... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 218 |
from math import pi, fabs, cos, sqrt
a, b, h, m = (int(s) for s in input().split())
theta_a = 2*pi * h/12
theta_b = 2*pi * m/60
theta = fabs(theta_a - theta_b)
if theta > pi/2:
theta = 2 * pi - theta
result = sqrt(a**2 + b**2 - 2*a*b*cos(theta))
print(result) | from math import pi, fabs, cos, sqrt
a, b, h, m = (int(s) for s in input().split())
theta_a = 2*pi * (m/60 + h)/12
theta_b = 2*pi * m/60
theta = fabs(theta_a - theta_b)
if theta > pi/2:
theta = 2 * pi - theta
result = sqrt(a**2 + b**2 - 2*a*b*cos(theta))
print(result) | [["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 24], ["+", 31, 657, 12, 23, 0, 657, 31, 657, 31, 22], ["+", 31, 657, 12, 23, 0, 657, 31, 657, 17, 85], ["+", 31, 657, 12, 23, 0, 657, 31, 657, 12, 612], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 17, 72], ["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 25]] | 5 | 101 |
A, B, H, M = map(int,input().split())
Ha = H*math.pi/6 + M*math.pi/360
Ma = M*math.pi/30
if Ha == Ma:
print(abs(A-B))
else:
print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(Ha-Ma))) | import math
A, B, H, M = map(int,input().split())
Ha = H*math.pi/6 + M*math.pi/360
Ma = M*math.pi/30
if Ha == Ma:
print(abs(A-B))
else:
print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(Ha-Ma))) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 92 |
import math
A,B,H,M = list(map(int,input().split()))
Q = 30*H - 143*M/24
L = (A**2 + B**2 - 2*A*B*math.cos(math.radians(Q)))**(1/2)
print(L) | import math
A,B,H,M = list(map(int,input().split()))
Q = 30*H - 11*M/2
L = (A**2 + B**2 - 2*A*B*math.cos(math.radians(Q)))**(1/2)
print(L) | [["-", 0, 662, 12, 657, 12, 657, 31, 657, 31, 612], ["+", 0, 662, 12, 657, 12, 657, 31, 657, 31, 612], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]] | 5 | 75 |
import math
A, B, H, M = map(int,input().split())
timeHr = H + (M / 60)
angVelA = (1/6) * 180
angVelB = (2) * 180
degA = (angVelA * timeHr) % (2 * 180)
degB = (angVelB * timeHr) % (2 * 180)
degDiff = abs(degB - degA) % 180
disX_2 = math.pow(B, 2) + math.pow(A, 2) - (2 * A * B * math.cos(math.radians(degDiff)))
di... | import math
A, B, H, M = map(int,input().split())
timeHr = H + (M / 60)
angVelA = (1/6) * 180
angVelB = (2) * 180
degA = (angVelA * timeHr) % (2 * 180)
degB = (angVelB * timeHr) % (2 * 180)
degDiff = abs(degB - degA)
disX_2 = math.pow(B, 2) + math.pow(A, 2) - (2 * A * B * math.cos(math.radians(degDiff)))
disX = ... | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 134 |
import math
A, B, H, M = map(int,input().split())
timeHr = H + (M / 60)
angVelA = (1/6) * 180
angVelB = (2) * 180
degA = (angVelA * timeHr)
degB = (angVelB * timeHr)
defDiff = math.radians(abs(degB - degA))
disX_2 = math.pow(B, 2) + math.pow(A, 2) - (2 * A * B * math.cos(degDiff))
disX = math.sqrt(disX_2)
print(... | import math
A, B, H, M = map(int,input().split())
timeHr = H + (M / 60)
angVelA = (1/6) * 180
angVelB = (2) * 180
degA = (angVelA * timeHr)
degB = (angVelB * timeHr)
degDiff = math.radians(abs(degB - degA))
disX_2 = math.pow(B, 2) + math.pow(A, 2) - (2 * A * B * math.cos(degDiff))
disX = math.sqrt(disX_2)
print(... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 120 |
import math
l = list(map(int, input().split()))
A = l[0]
B = l[1]
H = l[2]
M = l[3]
thita1 = 6*M - 30*(H + M/60)
thita2 = 6*M
thita = abs(thita1 - thita2)
thita_ = max(thita, 360-thita)
c = math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(thita_)))
print(c)
| import math
l = list(map(int, input().split()))
A = l[0]
B = l[1]
H = l[2]
M = l[3]
thita1 = 30*(H + M/60)
thita2 = 6*M
thita = abs(thita1 - thita2)
thita_ = max(thita, 360-thita)
c = math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(thita_)))
print(c)
| [["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33]] | 5 | 117 |
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#define PI 3.14159265
using namespace std;
int main(void) {
// Your code here!
double A, B;
double H, M;
cin >> A >> B >> H >> M;
double Hangle = H * 30 + M / 2;
double minangle = M * 6;
double angdiff = abs(Hangle - minangle);
... | #include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#define PI 3.14159265358979323846264338327950288
using namespace std;
int main(void) {
// Your code here!
double A, B;
double H, M;
cin >> A >> B >> H >> M;
double Hangle = H * 30 + M / 2;
double minangle = M * 6;
double angdiff =... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 1, 0, 11, 12, 41, 15, 16, 17, 20], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 118 |
import math
list_input = list(map(int, input().split()))
a = list_input[0]
b = list_input[1]
hour = list_input[2]
minute = list_input[3]
# cos(theta) 計算
hour_angle = 2 * math.pi * (hour / 12) + math.pi / 6 * (minute / 60) # 時針は1時間に
minute_angle = math.pi / 6 * (minute / 60) # 秒針は1分間に math.pi/6 度動く
target_angle = abs... | import math
list_input = list(map(int, input().split()))
a = list_input[0]
b = list_input[1]
hour = list_input[2]
minute = list_input[3]
# cos(theta) 計算
hour_angle = 2 * math.pi * (hour / 12) + math.pi / 6 * (minute / 60) # 時針は1時間に
minute_angle = math.pi / 30 * minute # 秒針は1分間に math.pi/30 度動く
target_angle = abs(hou... | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 85], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 139 |
import math
A, B, H, M = map(int, input().split())
degree = abs(6 * M - 30 * H)
if degree > 180:
degree = 360 - degree
print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(degree))))
| import math
A, B, H, M = map(int, input().split())
degree = abs(6 * M - 30 * (H+M/60))
if degree > 180:
degree = 360 - degree
print(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(degree))))
| [["+", 3, 4, 0, 657, 12, 657, 12, 23, 0, 24], ["+", 0, 657, 12, 657, 12, 23, 0, 657, 17, 72], ["+", 12, 657, 12, 23, 0, 657, 12, 657, 31, 22], ["+", 12, 657, 12, 23, 0, 657, 12, 657, 17, 85], ["+", 12, 657, 12, 23, 0, 657, 12, 657, 12, 612], ["+", 3, 4, 0, 657, 12, 657, 12, 23, 0, 25]] | 5 | 77 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::string;
#define PI 3.14159265358979323846
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double hInMinutes = h * 5 + (m / 60.0) * 5;... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::string;
#define PI 3.14159265358979323846
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double hInMinutes = h * 5 + (m / 60.0) * 5;... | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 156 |
import math
a,b,h,m = map(int,input().split())
w = h/6-11*m/360
u = 2*a*b*math.cos(math.radians(w))
dis = a*a + b*b -u
print(math.sqrt(dis)) | import math
a,b,h,m = map(int,input().split())
w = 30*h-11*m/2
u = 2*a*b*math.cos(math.radians(w))
dis = a*a + b*b -u
print(math.sqrt(dis)) | [["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 85], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]] | 5 | 72 |
a, b, h, m = map(int, input().split())
hangle = 360*(h/12+m/(60*12))
mangle = 360*m/60
hm = math.radians(abs(hangle-mangle))
ans = math.sqrt(a**2+b**2-2*a*b*math.cos(hm))
print(ans) | import math
a, b, h, m = map(int, input().split())
hangle = 360*(h/12+m/(60*12))
mangle = 360*m/60
hm = math.radians(abs(hangle-mangle))
ans = math.sqrt(a**2+b**2-2*a*b*math.cos(hm))
print(ans) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 88 |
#include <iomanip>
#include <iostream>
#include <math.h>
#define pi 3.1415
using namespace std;
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
double p;
p = pi * (h + m / 60) / 6 - (pi * m) / 30;
double c;
c = a * a + b * b - 2 * a * b * cos(p);
cout << fixed << setprecision(20) << sqrt(c);
... | #include <iomanip>
#include <iostream>
#include <math.h>
#define pi 3.14159265358979323846264338327950L
using namespace std;
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
double p;
p = pi * (h + m / 60) / 6 - (pi * m) / 30;
double c;
c = a * a + b * b - 2 * a * b * cos(p);
cout << fixed << se... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 104 |
import math
A, B, H, M = map(int, input().split())
theta = abs(H*30 - M*5.5) / 180
ans = math.sqrt(A*A + B*B - 2*A*B*math.cos(math.radians(theta)))
print(ans)
| import math
A, B, H, M = map(int, input().split())
theta = abs(H*30 - M*5.5)
ans = math.sqrt(A*A + B*B - 2*A*B*math.cos(math.radians(theta)))
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
void solve() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double x = 6 * m, y = 30 * h + 0.5 * m, ang;
int xx = 6 * m, yy = 30 * h + m / 2;
cout << fixed << setprecision(12);
if (x == y)
cout << b - a;
else if (m % 2 == 0 && ((xx + 180) %... | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
void solve() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double x = 6 * m, y = 30 * h + 0.5 * m, ang;
int xx = 6 * m, yy = 30 * h + m / 2;
cout << fixed << setprecision(12);
if (x == y)
cout << abs(b - a);
else if (m % 2 == 0 && ((xx + 1... | [["+", 0, 57, 64, 1, 0, 16, 12, 2, 63, 22], ["+", 64, 1, 0, 16, 12, 2, 3, 4, 0, 24], ["+", 64, 1, 0, 16, 12, 2, 3, 4, 0, 25]] | 1 | 258 |
import math
A,B,H,M=map(int,input().split())
rad=abs(math.pi/6*H-math.pi/30*M)
print((A**2+B**2-2*A*B*math.cos(rad))**0.5) | import math
A,B,H,M=map(int,input().split())
rad=abs(math.pi/6*(H+M/60)-math.pi/30*M)
print((A**2+B**2-2*A*B*math.cos(rad))**0.5) | [["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 24], ["+", 0, 657, 31, 657, 12, 23, 0, 657, 17, 72], ["+", 31, 657, 12, 23, 0, 657, 12, 657, 31, 22], ["+", 31, 657, 12, 23, 0, 657, 12, 657, 17, 85], ["+", 31, 657, 12, 23, 0, 657, 12, 657, 12, 612], ["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 25]] | 5 | 69 |
a,b,c,d = map(int,input().split())
import math
rad = math.fabs((c/12 - d/60)*360)
rad = min(rad,360-rad)/180
cosine = math.cos(rad*3.141593653589793)
print((a**2+b**2 - 2*a*b*cosine)**0.5) | a,b,c,d = map(int,input().split())
import math
rad = math.fabs((c/12 - d/60 + d/720)*360)
rad = min(rad,360-rad)/180
cosine = math.cos(rad*math.pi)
print((a**2+b**2 - 2*a*b*cosine)**0.5) | [["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 72], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 31, 22], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 17, 85], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 12, 612], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531], ["+", 12, 652, 3, 4, 0, 657, 12, 319, 500, 22], ["+", 12, 652, 3, 4, 0, 657, 12, 3... | 5 | 84 |
import math
hourR, minR, H, M = map(int, input().split())
hourPos = [math.sin(2 * ((H * 60 + M) / 1440) * math.pi) * hourR,
math.cos(2 * ((H * 60 + M) / 1440) * math.pi) * hourR]
minPos = [math.sin((M / 30) * math.pi) * minR,
math.cos((M / 30) * math.pi) * minR]
distance = math.sqrt(
pow(hourPo... | import math
hourR, minR, H, M = map(int, input().split())
hourPos = [math.sin(((H * 60 + M) / 360) * math.pi) * hourR,
math.cos(((H * 60 + M) / 360) * math.pi) * hourR]
minPos = [math.sin((M / 30) * math.pi) * minR,
math.cos((M / 30) * math.pi) * minR]
distance = math.sqrt(
pow(hourPos[0] - min... | [["-", 31, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["-", 31, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["-", 0, 657, 31, 657, 12, 23, 0, 657, 12, 612], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 152 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextInt();
double b = sc.nextInt();
double h = sc.nextInt();
double m = sc.nextInt();
double theta1 = (h / 12.0 + m / 60.0 / 12.0) * Math.PI * 2;
dou... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextInt();
double b = sc.nextInt();
double h = sc.nextInt();
double m = sc.nextInt();
double theta1 = (h / 12.0 + m / 60.0 / 12.0) * Math.PI * 2;
dou... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 515]] | 3 | 156 |
import math
s = list(map(float, input().split()))
htheta = 30.0*s[2]+0.5*(s[3]) #hの角度
mtheta = 6.0*(s[3]) #mの角度
theta = abs(htheta-mtheta)
if theta > 180:
theta = theta - 180
r = math.sqrt(s[0]**2+s[1]**2-2*s[0]*s[1]*math.cos(math.radians(theta)))
print(r) | import math
s = list(map(float, input().split()))
htheta = 30.0*s[2]+0.5*(s[3]) #hの角度
mtheta = 6.0*(s[3]) #mの角度
theta = abs(htheta-mtheta)
if theta > 180:
theta = 360 - theta
r = math.sqrt(s[0]**2+s[1]**2-2*s[0]*s[1]*math.cos(math.radians(theta)))
print(r) | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 114 |
#include <bits/stdc++.h>
using namespace std;
#define PI 3.141592653589
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int A, B, H, M;
cin >> A >> B >> H >> M;
double deg = abs((H * 60.0 + M) / (60.0 * 12) - M / 60.0) * 360;
double res = A * A + B * B - 2 * A * B * cos(deg * PI / 180.0);... | #include <bits/stdc++.h>
using namespace std;
#define PI 3.141592653589
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int A, B, H, M;
cin >> A >> B >> H >> M;
double deg = abs((H * 60.0 + M) / (60.0 * 12) - M / 60.0) * 360;
double res = A * A + B * B - 2 * A * B * cos(deg * PI / 180.0);... | [["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 116 |
#include <bits/stdc++.h>
#define ALL(A) (A).begin(), (A).end()
#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a ... | #include <bits/stdc++.h>
#define ALL(A) (A).begin(), (A).end()
#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a ... | [["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 17, 85], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 12, 13]] | 1 | 328 |
import math
# 時針の速度
# 360度/720分 = 1/2度/m
# 分針の速度
# 360度/60分 = 6度/m
# 時針と分針の度数は両者を減算したものの絶対値
# 使用するのは余弦定理
# def str_to_int(str_num):
# int_num = int(str_num)
# return int_num
line = input().split(' ')
# int_line = list(map(lambda str_num: int(str_num), line))
int_line = [int(str_num) for str_num in line]
prin... | import math
# 時針の速度
# 360度/720分 = 1/2度/m
# 分針の速度
# 360度/60分 = 6度/m
# 時針と分針の度数は両者を減算したものの絶対値
# 使用するのは余弦定理
# def str_to_int(str_num):
# int_num = int(str_num)
# return int_num
line = input().split(' ')
# int_line = list(map(lambda str_num: int(str_num), line))
int_line = [int(str_num) for str_num in line]
# pr... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 124 |
import math
A, B, H, M = map(int, input().split())
h_angle = 360 / 12 * H + 360 / 12 / 60 * M
m_angle = 360/60*M
dif_angle = (h_angle - m_angle) % 180
c2 = A**2 + B**2-2*A*B*math.cos(dif_angle/180*math.pi)
print(math.sqrt(c2))
| import math
A, B, H, M = map(int, input().split())
h_angle = 360 / 12 * H + 360 / 12 / 60 * M
m_angle = 360/60*M
dif_angle = (h_angle - m_angle)
c2 = A**2 + B**2-2*A*B*math.cos(dif_angle/180*math.pi)
print(math.sqrt(c2))
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 90 |
/* ex4_1
terakura */
#include <math.h>
#include <stdio.h>
int main(void) {
double short_hund, long_hund, hour, minute, angle, area;
scanf("%lf %lf %lf %lf", &short_hund, &long_hund, &hour, &minute);
//短針とが0時0分の為す角は(時間*2π/12) + (π/6の”分”ぶんの60)
angle = ((hour * 2 * M_PI / 12) + (M_PI / 6 * minute / 60)) -
... | /* ex4_2
terakura */
#include <math.h>
#include <stdio.h>
int main(void) {
double short_hund, long_hund, hour, minute, angle, area;
scanf("%lf %lf %lf %lf", &short_hund, &long_hund, &hour, &minute);
//短針と0時0分が為す角は(時間/12)*2π +
//(π/6の”分”ぶんの60)、長針と0時0分が為す角は(”分”ぶんの60)*2π
angle = ((hour / 12 * 2 * M_PI) + (M... | [["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 85], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 85], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 124 |
/* ex4_1
terakura */
#include <math.h>
#include <stdio.h>
int main(void) {
double short_hund, long_hund, hour, minute, angle, area;
scanf("%lf %lf %lf %lf", &short_hund, &long_hund, &hour, &minute);
//短針とが0時0分の為す角は(時間*2π/12) + (π/6の”分”ぶんの60)
angle = ((hour * 2 * M_PI / 12) + (M_PI / 6 * minute / 60)) -
... | /* ex4_2
terakura */
#include <math.h>
#include <stdio.h>
int main(void) {
double short_hund, long_hund, hour, minute, angle, area;
scanf("%lf %lf %lf %lf", &short_hund, &long_hund, &hour, &minute);
//短針とが0時0分の為す角は(時間*2π/12) + (π/6の”分”ぶんの60)
angle = ((hour * 2 * M_PI / 12) + (M_PI / 6 * minute / 60)) -
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 124 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
double hlen, mlen, hour, minute, rad, len;
scanf("%la %la %la %la", &hlen, &mlen, &hour, &minute);
rad = abs(M_PI * (hour / 6 - minute * 11 / 360));
len = sqrt(pow(hlen, 2) + pow(mlen, 2) - 2 * hlen * mlen * cos(rad));
printf("%.10f\n"... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
double hlen, mlen, hour, minute, rad, len;
scanf("%la %la %la %la", &hlen, &mlen, &hour, &minute);
rad = M_PI * (hour / 6 - minute * 11 / 360);
len = sqrt(pow(hlen, 2) + pow(mlen, 2) - 2 * hlen * mlen * cos(rad));
printf("%.10f\n", len... | [["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["-", 12, 2, 3, 4, 0, 16, 12, 23, 0, 25]] | 0 | 107 |
/* ex4_2
suzuto */
#include <math.h>
#include <stdio.h>
double cos_theorem_fanc(double len_1, double len_2,
double angle); /*プロトタイプ宣言*/
int main(void) {
double len_hour, len_mimute, hour, minute, ans, angle; /*変数の宣言*/
scanf("%lf %lf %lf %lf", &len_hour, &len_mimute, &hour,
... | /* ex4_2
suzuto */
#include <math.h>
#include <stdio.h>
double cos_theorem_func(double len_1, double len_2,
double angle); /*プロトタイプ宣言*/
int main(void) {
double len_hour, len_mimute, hour, minute, ans, angle; /*変数の宣言*/
scanf("%lf %lf %lf %lf", &len_hour, &len_mimute, &hour,
... | [["-", 36, 36, 0, 30, 0, 43, 49, 53, 49, 22], ["+", 36, 36, 0, 30, 0, 43, 49, 53, 49, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 36, 36, 0, 30, 0, 14, 49, 53, 49, 22], ["+", 36, 36, 0, 30, 0, 14, ... | 0 | 169 |
/* ex_4-2. nknm */
#include <math.h>
#include <stdio.h>
//関数を宣言
int length(double len_h, double len_m, double hour, double min);
int main(void) {
double len_h, len_m, hour, min, ans;
scanf("%lf%lf%lf%lf", &len_h, &len_m, &hour, &min);
//関数の計算結果を出力
ans = length(len_h, len_m, hour, min);
printf("%.9f\n", ... | /* ex_4-2. nknm */
#include <math.h>
#include <stdio.h>
//関数を宣言
double length(double len_h, double len_m, double hour, double min);
int main(void) {
double len_h, len_m, hour, min, ans;
scanf("%lf%lf%lf%lf", &len_h, &len_m, &hour, &min);
//関数の計算結果を出力
ans = length(len_h, len_m, hour, min);
printf("%.20f\... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40]] | 0 | 171 |
/* 4_1
Y_Aizaki */
#include <math.h>
#include <stdio.h>
#define PI 3.14159265359
/* プロトタイプ宣言 */
double radian(double hour_date, double minute_date);
double handDistance(double rad_date, double len_date1, double len_date2);
int main(void) {
double len_hour, len_minute, hour, minute;
// 時針の長さ、分針の長さ、~時、~分
... | /* 4_2
Y_Aizaki */
#include <math.h>
#include <stdio.h>
#define PI 3.14159265359
/* プロトタイプ宣言 */
double radian(double hour_date, double minute_date);
double handDistance(double rad_date, double len_date1, double len_date2);
int main(void) {
double len_hour, len_minute, hour, minute;
// 時針の長さ、分針の長さ、~時、~分
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 215 |
/* ex4_2
UMAboogie */
#include <math.h>
#include <stdio.h>
#define PI 3.14159265358979 //円周率を定義
int main(void) {
int length_h, length_m, hour, minute;
scanf("%d %d %d %d", &length_h, &length_m, &hour,
&minute); //時針の長さと分針の長さと時間と分を入力
double angle_h = hour * PI / 6 + minute * PI / 360; //時針が進む角度を計算
... | /* ex4_2
UMAboogie */
#include <math.h>
#include <stdio.h>
#define PI 3.14159265358979 //円周率を定義
int main(void) {
int length_h, length_m, hour, minute;
scanf("%d %d %d %d", &length_h, &length_m, &hour,
&minute); //時針の長さと分針の長さと時間と分を入力
double angle_h = hour * PI / 6 + minute * PI / 360; //時針が進む角度を計算
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 120 |
/* ex4_1
hangan2020 */
#include <math.h>
#include <stdio.h>
#define _USE_MATH_DEFINES
//プロトタイプ宣言
double ClockHandsDistance(double LHLength, double SHLength, double Hour,
double Minute);
int main(void) {
double lhlength, shlength, hour, minute;
double distance;
scanf("%lf %lf %lf ... | /* ex4_1
hangan2020 */
#include <math.h>
#include <stdio.h>
#define _USE_MATH_DEFINES
//プロトタイプ宣言
double ClockHandsDistance(double LHLength, double SHLength, double Hour,
double Minute);
int main(void) {
double lhlength, shlength, hour, minute;
double distance;
scanf("%lf %lf %lf ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]] | 0 | 180 |
/*ex4_2
series2*/
#include <math.h>
#include <stdio.h>
int main(void) {
//各文字の箱を作って読み取り
int l_hand, s_hand, hour, minute;
scanf("%d %d %d %d", &l_hand, &s_hand, &hour, &minute);
//二本の針の差を0以上pi以下で計算
// 2*M_PI*(60*hour+minute)/(12*60)は時針の進んだ角度
// 2*M_PI*minute/60は分針の進んだ角度
long double diff =
2 * M_PI ... | /*ex4_2
series2*/
#include <math.h>
#include <stdio.h>
int main(void) {
//各文字の箱を作って読み取り
int l_hand, s_hand, hour, minute;
scanf("%d %d %d %d", &l_hand, &s_hand, &hour, &minute);
//二本の針の差を0以上pi以下で計算
// 2*M_PI*(60*hour+minute)/(12*60)は時針の進んだ角度
// 2*M_PI*minute/60は分針の進んだ角度
long double diff =
2 * M_PI ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 110 |
/* ex4_2
potter0723sw */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
double lengtha, lengthb, hour, minute, radian, mid, ans;
scanf("%lf %lf %lf %lf", &lengtha, &lengthb, &hour, &minute);
radian =
fabs(5.5 * minute - 30 * hour) * M_PI /
180; // 5.5は6-0.5で長針の1分6度の動... | /* ex4_2
potter0723sw */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
double lengtha, lengthb, hour, minute, radian, mid, ans;
scanf("%lf %lf %lf %lf", &lengtha, &lengthb, &hour, &minute);
radian = fabs(5.5 * minute - 30 * hour) * M_PI / 180;
// 5.5は6-0.5で長針の1分6度の動きから短針の1分0.... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 115 |
// 課題4_2 AtCoder Beginner Contest 168 C - : (Colon)
#include <math.h>
#include <stdio.h>
int main(void) {
// 時針の長さlength_h cm,分針の長さlength_min cm,時刻hour:min
int length_h, length_min, hour, min;
// 結果の格納ans, 短針と時針の間の角度rad
double ans, rad;
// length_h, length_min, hour, minを受け取る
scanf("%d %d %d %d", &length... | // 課題4_2 AtCoder Beginner Contest 168 C - : (Colon)
#include <math.h>
#include <stdio.h>
int main(void) {
// 時針の長さlength_h cm,分針の長さlength_min cm,時刻hour:min
int length_h, length_min, hour, min;
// 結果の格納ans, 短針と時針の間の角度rad
double ans, rad;
// length_h, length_min, hour, minを受け取る
scanf("%d %d %d %d", &length... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 146 |
/* ex4_2
kohei_suzuki */
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
int main(void) {
double short_hand, long_hand, hour, min;
double angle, ans;
scanf("%lf %lf %lf %lf", &short_hand, &long_hand, &hour, &min);
angle = abs(hour * 30.0 + min / 2.0 - min * 6.0) / 180.0 ... | /* ex4_2
kohei_suzuki */
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
int main(void) {
double short_hand, long_hand, hour, min; //短針,長針,時間,分
double angle, ans; //角度,答え
scanf("%lf %lf %lf %lf", &short_hand, &long_hand, &hour, &min); //入力受取
angle =... | [["-", 0, 11, 12, 16, 31, 16, 31, 2, 63, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 113 |
/* ex4_2
kohei_suzuki */
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
int main(void) {
double short_hand, long_hand, hour, min;
double angle, ans;
scanf("%lf %lf %lf %lf", &short_hand, &long_hand, &hour, &min);
angle = abs(hour * 30.0 + min / 2.0 - min * 6.0) / 180.0 ... | /* ex4_2
kohei_suzuki */
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
int main(void) {
double short_hand, long_hand, hour, min;
double angle, ans;
scanf("%lf %lf %lf %lf", &short_hand, &long_hand, &hour, &min);
angle = fabs(hour * 30.0 + min / 2.0 - min * 6.0) / 180.0... | [["-", 0, 11, 12, 16, 31, 16, 31, 2, 63, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 113 |
/* ex4_1
YSK722 */
#include <math.h>
#include <stdio.h>
int main(void) {
double short_hand, long_hand, hour, minute, ans, angle_diff;
scanf("%lf %lf %lf %lf", &short_hand, &long_hand, &hour, &minute);
// 短針と長針のか鵜戸の差を求める
angle_diff = 2 * M_PI * ((hour + minute / 60.0) / 12 - minute / 60);
/* 余弦定理を用いる
... | /* ex4_2
YSK722 */
#include <math.h>
#include <stdio.h>
int main(void) {
double short_hand, long_hand, hour, minute, ans, angle_diff;
scanf("%lf %lf %lf %lf", &short_hand, &long_hand, &hour, &minute);
// 短針と長針の角度の差を求める
angle_diff = 2 * M_PI * ((hour + minute / 60.0) / 12 - minute / 60);
/* 余弦定理を用いる
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 110 |
/* ex4_2
pptenshi */
#include <math.h>
#include <stdio.h>
int main(void) {
int len_hour_hand, // A
len_minute_hand, // B
hour, // H
minute; // M
double angle_hour_hand, // 0時からの角度
angle_minute_hand, // 0分からの角度
angle_hands, // 時針と分針がなす角
dista... | /* ex4_2
pptenshi */
#include <math.h>
#include <stdio.h>
int main(void) {
int len_hour_hand, // A
len_minute_hand, // B
hour, // H
minute; // M
double angle_hour_hand, // 0時からの角度
angle_minute_hand, // 0分からの角度
angle_hands, // 時針と分針がなす角
dista... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 148 |
/* ex4_1
shu_t */
#include <math.h>
#include <stdio.h>
int main(void) {
int hour, minute;
double hour_hand, minute_hand;
double arg, ans, squared_ans;
// input length of hour_hand and minute_hand
// input hour and minute
scanf("%lf %lf %d %d", &hour_hand, &minute_hand, &hour, &minute);
// calculate a... | /* ex4_2
shu_t */
#include <math.h>
#include <stdio.h>
int main(void) {
int hour, minute;
double hour_hand, minute_hand;
double arg, ans, squared_ans;
// input length of hour_hand and minute_hand
// input hour and minute
scanf("%lf %lf %d %d", &hour_hand, &minute_hand, &hour, &minute);
// calculate a... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.