Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
279 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main(){
    int a, b = 1, c = 0;
    cin >> a;
    if (a > 145) {
        cout << "NO";
        return 0;
    }
    while (b < a) {
        c += 5;
        b++;
    }
    cout << c / 60 << " " << c % 60;
    return 0;
}