Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
230 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int n, i,a;
	cin >> n;
	for ( i = 0; n > 10; i ++) n-=60;
	for (a = 0; n > 1; a++) n -= 10;
	if (n > 0)n = 1;
	else n = 0;
	cout << n << " " << a << " " << i;
}