Submission #1232772
Source Code Expand
#include<iostream> #include<algorithm> using namespace std; typedef long double Ld; int main() { Ld n, m; cin >> n >> m; Ld ans =fabs( n*30 - m * 6+m*0.5); while (ans > 359)ans -= 360; cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 時計盤 |
User | Rho17 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 234 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:34: error: ‘fabs’ was not declared in this scope Ld ans =fabs( n*30 - m * 6+m*0.5); ^