Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
179 B
1
Indexable
Never
#include <iostream>

using namespace std;

int main() {
    int H, M, S;
    cin >> H >> M >> S;
    int sec = 12 * 3600 / 360;
    cout << (H * 3600 + M * 60 + S) / float(sec);
}
Leave a Comment