DCP-35: Square Number Back to All Problems

Beginner Beginners Problems > Ad-hoc


You are given a positive integer number n. You have to check, if the number is square of another integer number. Say a number ‘A’ is called the square number of ‘B’ if and only if A = B*B . That’s why 4 is a square number because 4 = 2 * 2 Input: ------ Input starts with an integer **T (T<=100)**, denoting the number of test case. The following **T** line will have a positive integer number **n (n<=1000)**. Output: ------- For each test case first print the case number “**Case %d:** ” and then print "**YES**", if the number is square of another integer number, else print "**NO**". Sample Input ------------ 2 3 4 Sample Output ------------- Case 1: NO Case 2: YES


Problem Setter:

Shakil Ahmed

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C/C++ 1.00
Java 2.00
C# 2.00
PHP 2.00

Problem Stats

182/342

Solve/Submission

Ranking

# User Language Timing
01 leenaiitju Cpp 0.00s
02 return_SS Cpp 0.00s
03 joy25896 Cpp 0.00s
04 MarufAhmed Cpp 0.00s
05 bu_hridoy Cpp 0.00s
06 Rana_EEE_DUET Cpp 0.00s
07 ishrafislam2727 Cpp 0.00s
08 ronok_cse Cpp 0.00s
09 emrul Cpp 0.00s
10 Mubeen Cpp 0.00s
11 Ansarul_14 Cpp 0.00s
12 Ashish972 Cpp 0.00s
13 ash12 Cpp 0.00s
14 USB16 Cpp 0.00s
15 Avijeet Cpp 0.00s
16 Indro_BU Cpp 0.00s
17 TalukderMuhammad Cpp 0.00s
18 Uap_Amit Cpp 0.00s
19 maxhasan Cpp 0.00s
20 gazi93 Cpp 0.00s
21 jayed_al_hasan Cpp 0.00s
22 Sojal Cpp 0.00s
23 iftekher2283 Cpp 0.00s
24 terminator_c Cpp 0.00s
25 gulzar Cpp 0.00s
26 JubayerSohel Cpp 0.00s
27 7Mahfuz Cpp 0.00s
28 kfahim110 Cpp 0.00s
29 seyedssz Cpp 0.00s
30 KratosR Cpp 0.01s
31 golapraj Cpp 0.01s
32 Mehedi07 Cpp 0.01s
33 absa1am Cpp 0.01s
34 Aman_khan Cpp 0.01s
35 Rahmatullah Cpp 0.01s
36 shuvro_das Cpp 0.06s
37 AUIArafat Cpp 0.07s
38 Faridur Cpp 0.07s
39 Sheikh_Fahad Cpp 0.07s
40 mahrahat Cpp 0.07s
41 Brokenlog Cpp 0.07s
42 Yeasin10A Cpp 0.07s
43 Anubis Cpp 0.07s
44 SkSaber Cpp 0.07s
45 dmehrab06 Cpp 0.07s
46 akram Cpp 0.07s
47 anis Cpp 0.07s
48 MinhajulAlam Cpp 0.07s
49 Gias_uddin Cpp 0.08s
50 shahbaz Cpp 0.08s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support