Tap here to switch tabs
Problem
Submissions

Problem: Check Good Integer

Try to solve the Check Good Integer problem.

Statement

You are given an integer n.

An integer is considered a good integer if the difference between the sum of the squares of its digits and the sum of its digits is greater than or equal to 5050.

Return true if n is a good integer, and false otherwise.

Constraints:

  • 1≤1 \leq n ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Check Good Integer

Try to solve the Check Good Integer problem.

Statement

You are given an integer n.

An integer is considered a good integer if the difference between the sum of the squares of its digits and the sum of its digits is greater than or equal to 5050.

Return true if n is a good integer, and false otherwise.

Constraints:

  • 1≤1 \leq n ≤109\leq 10^9