알고리즘

[알고리즘] 백준 26307 - Correct (C++)

blueberrysoda 2025. 1. 28. 22:45

[문제 링크] : https://www.acmicpc.net/problem/26307

#include <iostream>
using namespace std;

int main(){
    int H, M;
    cin >> H >> M;
    int A = 9 * 60, B = H * 60 + M;
    cout << B - A << "\n";
    return 0;
}