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 1.00
C++ 1.00
C++14 1.00
C# 2.00
Go 2.00
Java 2.00
JavaScript 2.00
Objective-C 2.00
Perl 2.00
PHP 2.00
Python 2.00
Python3 2.00
Ruby 2.00
VB.Net 2.00

Problem Stats

339/697

Solve/Submission

Ranking

# User Language Timing
01 leenaiitju Cpp14 0.00s
02 return_SS Cpp14 0.00s
03 joy25896 Cpp14 0.00s
04 MarufAhmed Cpp14 0.00s
05 bu_hridoy Cpp14 0.00s
06 Rana_EEE_DUET Cpp14 0.00s
07 ronok_cse Cpp14 0.00s
08 emrul Cpp14 0.00s
09 Mubeen Cpp14 0.00s
10 Ansarul_14 Cpp14 0.00s
11 Ashish972 Cpp14 0.00s
12 ash12 Cpp14 0.00s
13 USB16 Cpp14 0.00s
14 Avijeet Cpp14 0.00s
15 Indro_BU Cpp14 0.00s
16 TalukderMuhammad Cpp14 0.00s
17 White_Death Cpp14 0.00s
18 maxhasan Cpp14 0.00s
19 gazi93 Cpp14 0.00s
20 jayed_al_hasan Cpp14 0.00s
21 Sojal Cpp14 0.00s
22 iftekher2283 Cpp14 0.00s
23 terminator_c Cpp14 0.00s
24 gulzar Cpp14 0.00s
25 JubayerSohel Cpp14 0.00s
26 7Mahfuz Cpp14 0.00s
27 kfahim110 Cpp14 0.00s
28 seyedssz Cpp14 0.00s
29 Nurul_CSE Cpp14 0.00s
30 rezaul_karim Cpp14 0.00s
31 Eucalyptus Cpp14 0.00s
32 Iqbal1013 Cpp14 0.00s
33 nurul_islam Cpp14 0.00s
34 nazmul_bzs Cpp14 0.00s
35 zitul_mahmud Cpp14 0.00s
36 sadia2427 Cpp14 0.00s
37 Masum_ice Cpp14 0.00s
38 jalal Cpp14 0.00s
39 muhaimin Cpp14 0.00s
40 AlaminJust Cpp14 0.00s
41 HM39 Cpp14 0.00s
42 azim_uddin Cpp14 0.00s
43 Dragon_162 Cpp14 0.00s
44 giash_uddin Cpp14 0.00s
45 abufarhad Cpp14 0.00s
46 mhsjaber Cpp14 0.00s
47 abd007 Cpp14 0.00s
48 Mr_KAJOL_JUST Cpp14 0.00s
49 Ratul098 Cpp14 0.00s
50 deder Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support