WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Perfect number(hard version)

Threads:Write test program 1 there is the perfect number does not? Perfect number is a positive integer equal the sum of the positive divisors 2 times it. example No. 6 the Convention 1, 2, 3, 6 and total 1 + 2 + 3 + 6 = 12 (equal 2 time 6).
Input: T số lượng test, T dòng tiếp theo mỗi dòng chứa một số nguyên duy nhất. Với giá trị <= 2*10^18
Output: “TRUE” nếu đó là số hoàn hảo, “FALSE” nếu ngược lại, với mỗi test case in trên một dòng

For example:

input:
2 
6
21
output:
TRUE
FALSE

You are not logged in? Log in to Submit Now!

Add a Comment