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

352/721

Solve/Submission

Ranking

# User Language Timing
01 jalal Cpp14 0.00s
02 ash12 Cpp14 0.00s
03 iftekher2283 Cpp14 0.00s
04 zitul_mahmud Cpp14 0.00s
05 subhashis_cse Cpp14 0.00s
06 Saimum_140128 Cpp14 0.00s
07 Alamgir_Hossain Cpp14 0.00s
08 Rana_EEE_DUET Cpp14 0.00s
09 emrul Cpp14 0.00s
10 muhaimin Cpp14 0.00s
11 7Mahfuz Cpp14 0.00s
12 ronok_cse Cpp14 0.00s
13 reza_ul Cpp14 0.00s
14 Masum_ice Cpp14 0.00s
15 mhsjaber Cpp14 0.00s
16 maxhasan Cpp14 0.00s
17 gazi93 Cpp14 0.00s
18 joy25896 Cpp14 0.00s
19 saaifuuu Cpp14 0.00s
20 deder Cpp14 0.00s
21 TalukderMuhammad Cpp14 0.00s
22 Sojal Cpp14 0.00s
23 Aizen Cpp14 0.00s
24 non_coder Cpp14 0.00s
25 Peregrine_Falcon Cpp14 0.00s
26 rezaul_karim Cpp14 0.00s
27 afzalul Cpp14 0.00s
28 abufarhad Cpp14 0.00s
29 giash_uddin Cpp14 0.00s
30 Sky2496 Cpp14 0.00s
31 onucsecu Cpp14 0.00s
32 virus Cpp14 0.00s
33 Nurul_CSE Cpp14 0.00s
34 abd007 Cpp14 0.00s
35 junayedmahmud Cpp14 0.00s
36 bu_hridoy Cpp14 0.00s
37 mrinmoi Cpp14 0.00s
38 Indro_BU Cpp14 0.00s
39 anik_JU Cpp14 0.00s
40 Freaky_Weirdo Cpp 0.00s
41 Mr_KAJOL Cpp14 0.00s
42 AlaminJust Cpp14 0.00s
43 Ansarul_14 Cpp14 0.00s
44 SHAHIDUL_VU_CSE Cpp14 0.00s
45 leenaiitju Cpp14 0.00s
46 SyntaxError10 Cpp14 0.00s
47 gulzar Cpp14 0.00s
48 JubayerSohel Cpp14 0.00s
49 seyedssz Cpp14 0.00s
50 Mehedi07 Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support