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

462/1410

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 Ashish972 Cpp14 0.00s
08 ash12 Cpp14 0.00s
09 USB16 Cpp14 0.00s
10 Avijeet Cpp14 0.00s
11 Indro_BU Cpp14 0.00s
12 TalukderMuhammad Cpp14 0.00s
13 Peregrine_Falcon Cpp14 0.00s
14 maxhasan Cpp14 0.00s
15 gazi93 Cpp14 0.00s
16 jayed_al_hasan Cpp14 0.00s
17 Sojal Cpp14 0.00s
18 iftekher2283 Cpp14 0.00s
19 terminator_c Cpp14 0.00s
20 gulzar Cpp14 0.00s
21 JubayerSohel Cpp14 0.00s
22 7Mahfuz Cpp14 0.00s
23 kfahim110 Cpp14 0.00s
24 seyedssz Cpp14 0.00s
25 Nurul_CSE Cpp14 0.00s
26 rezaul_karim Cpp14 0.00s
27 Eucalyptus Cpp14 0.00s
28 Iqbal1013 Cpp14 0.00s
29 nurul_islam Cpp14 0.00s
30 nazmul_bzs Cpp14 0.00s
31 zitul_mahmud Cpp14 0.00s
32 sadia2427 Cpp14 0.00s
33 ronok_cse Cpp14 0.00s
34 emrul Cpp14 0.00s
35 Mubeen Cpp14 0.00s
36 Ansarul_14 Cpp14 0.00s
37 abd007 Cpp14 0.00s
38 Masum_ice Cpp14 0.00s
39 jalal Cpp14 0.00s
40 muhaimin Cpp14 0.00s
41 AlaminJust Cpp14 0.00s
42 HM39 Cpp14 0.00s
43 azim_uddin Cpp14 0.00s
44 SakibAlamin Cpp14 0.00s
45 giash_uddin Cpp14 0.00s
46 abufarhad Cpp14 0.00s
47 Mr_KAJOL Cpp14 0.00s
48 Ratul098 Cpp14 0.00s
49 deder Cpp14 0.00s
50 rafsandevs Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support