Untitled
Anonymous
plain_text
01/02/2023 9:25 AM
372 B
19
Indexable
#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;
}Editor is loading...