Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
479 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
using namespace std;

int main()
//дз посложнее задача 1
{
	int n = 0;
	int m = 0;
	int kol = 0;
	int kol2 = 0;
	cin >> n >> m;
	for (int i = 0; n>0; i++){
		n = n / 10;
		kol++;
	}
	for (int i = 0; m > 0; i++) {
		m = m / 10;
		kol2++;
	}
	if (kol > kol2) {
		cout <<"Y pervogo"<< " "<<" - "<< kol;
	}
	else
		cout <<"Y vtorogo" <<" "<<" - "<< kol2;
	
		

}