# DCP-394: Square of N Back to All Problems

Beginner Beginners Problems > Ad-hoc

You are given a very large integer number **N** consisting of digit 9 only. Your task is to find the square of **N** (N^2). It is assured that number **N** contains only digit **9**. **N** can have at most **100** digits. Input: ------ There are several test cases and input will be terminated by end of file(**EOF**). Total number of test cases will be less than 20.<br> Each case contains one very large integer number **N** denoting the number. **N** can have at most 100 digits. Output: ------- For each case of input, print the square of **N** i.e. (N^2). Sample Input ------------ 9 999 99 Sample Output ------------- 81 998001 9801

### 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

# 224/599

Solve/Submission

### Ranking

# User Language Timing
01 motaleb_ICT Cpp 0.00s
02 rayhan50001 Cpp 0.00s
03 Unseen Cpp 0.00s
04 Mr_adnan Cpp 0.00s
05 Bruteforcekid Cpp14 0.00s
06 DynamicOvi Cpp 0.00s
07 haasib Cpp 0.00s
08 _dipu Cpp14 0.00s
09 nasib_mbstu Cpp 0.00s
10 cse_nazmul Cpp 0.00s
11 anik_JU Cpp 0.00s
12 Sarwar05 Cpp 0.00s
13 kzvd4729 Cpp 0.00s
14 Superstorm Cpp 0.00s
15 prodipdatta7 Cpp14 0.00s
16 pulak_ict_mbstu Cpp 0.00s
17 Zayed Cpp 0.00s
18 mehrab_mehadi Cpp 0.00s
19 AlaminJust Cpp 0.00s
20 ainan_ahmed Cpp 0.00s
21 Asif_Muktadir Cpp 0.00s
22 aaman007 Cpp 0.00s
23 mahade31 Cpp14 0.00s
24 _GhOstMan_ Cpp 0.00s
25 The_Viper Cpp 0.00s
26 shuvo_mbstu Cpp 0.00s
27 subhashis_cse Cpp 0.00s
28 MRITuhin Cpp 0.00s
29 Riad_IIT7 Cpp14 0.00s
30 the_badcoder Cpp 0.00s
31 Durbin Cpp14 0.00s
32 Rajan_sust Cpp14 0.00s
33 Foysol_Ahmed Cpp 0.00s
34 ashraf_neo Cpp 0.00s
35 Reayz Cpp 0.00s
36 miltonbhowmick Cpp14 0.00s
37 ashraful_haque Cpp 0.00s
38 porag_ict Cpp14 0.00s
39 Sagor Cpp 0.00s
40 astinaam Cpp14 0.00s
41 tlcakash Cpp 0.00s
42 Bisnu039 Cpp 0.00s
43 gazi93 Cpp 0.00s
44 Tanmoy Cpp 0.00s
45 iammarajul Cpp 0.00s
46 Aman_khan Cpp 0.00s
47 yasirnabil534 Cpp 0.00s
48 Shakil_Mahmud Cpp 0.00s
49 alaminv2 Cpp 0.00s
50 Fazla Cpp 0.00s
Feedback