8 lines
127 B
C++

#include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
bool isHappy(int n);
bool test(int n, bool answer);
};