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

436/1189

Solve/Submission

Ranking

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

Your feedback is our precious!



Or call +88 02 9853138 for support