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 Setter:

Mohibur Rahman

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

207/554

Solve/Submission

Ranking

# User Language Timing
01 ashraf_neo Cpp 0.00s
02 cse_nazmul Cpp 0.00s
03 habib_rahman Cpp 0.00s
04 dhormopran Cpp14 0.00s
05 nuhu_iu Cpp 0.00s
06 ArifKhanShubro Cpp 0.00s
07 Mahim007 Cpp14 0.00s
08 Unseen Cpp 0.00s
09 astinaam Cpp14 0.00s
10 subhashis_cse Cpp 0.00s
11 Zayed Cpp 0.00s
12 Durbin Cpp14 0.00s
13 Nazmul_WUB Cpp 0.00s
14 mbstu_nitai Cpp 0.00s
15 rabel Cpp 0.00s
16 Shakil_Mahmud Cpp 0.00s
17 haasib Cpp 0.00s
18 Jisancse Cpp14 0.00s
19 Foysol_Ahmed Cpp 0.00s
20 tariqiitju Cpp 0.00s
21 Tanmoy Cpp 0.00s
22 astrolion7 Cpp14 0.00s
23 Superstorm Cpp 0.00s
24 Nur_Alam39 Cpp 0.00s
25 Mr_adnan Cpp 0.00s
26 robin_aust Cpp 0.00s
27 gazi93 Cpp 0.00s
28 lazyfahim Cpp 0.00s
29 Dragon_Curve Cpp 0.00s
30 The_Viper Cpp 0.00s
31 Aman_khan Cpp 0.00s
32 rayhan50001 Cpp 0.00s
33 wizard Cpp 0.00s
34 saifkhan007420 Cpp 0.00s
35 Ishrak Cpp 0.00s
36 MRITuhin Cpp 0.00s
37 mhiceiu Cpp 0.00s
38 _zErO_ Cpp 0.00s
39 prodipdatta7 Cpp14 0.00s
40 rohijulislam Cpp 0.00s
41 t0whid Cpp 0.00s
42 yasirnabil534 Cpp 0.00s
43 Anikcsejnu Cpp 0.00s
44 non_coder C 0.00s
45 Sagor Cpp 0.00s
46 arafat_hasan Cpp14 0.00s
47 SaikatS Cpp 0.00s
48 afzalul Cpp 0.00s
49 fayedanik Cpp 0.00s
50 the_badcoder Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support