DCP-467: Very Happy New Year++ Back to All Problems

Beginner Beginners Problems > Ad-hoc


![enter image description here][1] Today is the first day of new year **2018**. So, Problem-setter decided to wish "**Happy New Year-2018!!**" to all of his wellwishers. Then he writes down the names of all of his well-wishers in notepad++. Suddenly, he notices that most of his wellwishers are competitive programming contestants. So, he decided to create a very easy problem for them to wish "Happy New Year-2018" to all of them. So, here is a very easy problem for you from that problem-setter. Hope this makes you Happy **:)**.<br> You are given a string of the form "**HappyNewYearX**" always , where **X** means zero or more "**+**" signs. Your task is to increase the current year value depending upon numbers of "**+**" signs and print the answer in following format : `Happy New Year-Y` , Here Y means updated year value after adding numbers of "**+**" sign with current year 2018. Input: ------ Input starts with an integer **T (1<=T<=20)**, denoting the number of test cases. Each case contains input in the format "**HappyNewYearX**" , where **X** means zero or more "**+**" sign( at most **100**). Output: ------- For each case of input, output answer in format "**Happy New Year-Y**". Sample Input ------------ 2 HappyNewYear HappyNewYear++ Sample Output ------------- Happy New Year-2018 Happy New Year-2020 [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/ddfa3576-3554-cb5d-d211-08d5512c4be1_63c5b69d99264e8483196e240fa24303_W426xH158.png


Problem Setter:

Bishal Gautam

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

245/381

Solve/Submission

Ranking

# User Language Timing
01 Bruteforcekid Cpp14 0.00s
02 skmonir Cpp 0.00s
03 showmic Cpp 0.00s
04 prottoy919 Cpp 0.00s
05 pulak_ict_mbstu Cpp 0.00s
06 Ryuuk Cpp 0.00s
07 Shourov Cpp 0.00s
08 Taran Cpp14 0.00s
09 anik_JU Cpp 0.00s
10 subhashis_cse Cpp 0.00s
11 kitorp Cpp14 0.00s
12 bu_hridoy Cpp 0.00s
13 _GhOstMan_ Cpp 0.00s
14 prodipdatta7 Cpp 0.00s
15 _dipu Cpp14 0.00s
16 Sagor Cpp 0.00s
17 FariD Cpp14 0.00s
18 tariqiitju Cpp 0.00s
19 DynamicOvi Cpp 0.00s
20 emrul Cpp14 0.00s
21 Imtiaz_A Cpp14 0.00s
22 rayhan50001 Cpp 0.00s
23 sayedgkm Cpp14 0.00s
24 motaleb_ICT Cpp 0.00s
25 kissu_pari_na Cpp 0.00s
26 Not_Found0001 Cpp 0.00s
27 adamantium Cpp 0.00s
28 Sakhawat_CoU Cpp 0.00s
29 miltonbhowmick Cpp14 0.00s
30 mepromee Cpp 0.00s
31 AlaminJust Cpp 0.00s
32 Anik_Roy Cpp 0.00s
33 mhiceiu Cpp 0.00s
34 Shafquat Cpp 0.00s
35 Reayz Cpp 0.00s
36 unknown420 Cpp 0.00s
37 Mohimenol_Fahim Cpp 0.00s
38 m_arif Cpp 0.00s
39 joty_ict Cpp 0.00s
40 voongvang C 0.00s
41 orpib Cpp 0.00s
42 jualahmed Cpp 0.00s
43 The_Musketeer Cpp14 0.00s
44 arafat_hasan Cpp14 0.00s
45 Bullet007_mbstu Cpp 0.00s
46 101111 Cpp 0.00s
47 Durbin Cpp14 0.00s
48 mir003 Cpp 0.00s
49 rashedul_riad Cpp 0.00s
50 nymphaea Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support