Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

Covid Analyzer (codechef) #280

Closed arpitgoyal27 closed 3 years ago

arpitgoyal27 commented 3 years ago

As the COVID-19 Pandemic is on it's Peak in India. The total number of Covid cases are increasing day by day. The Following series shows the number of cases on a particular day. 1,2,3,5,8,13,21,34,55,89,144,…. On the 1st Day the total cases where 1, on second day total cases where 2 , on third day 3 and so on. You have to write a program which will calculate the total number of cases on the Nth day. According to the above series.

Input: First line will contain T, number of testcases. Then the testcases follow. Each testcase contains of a single integer as input, N i.e Nth day. Output: For each testcase, output in a single line answer with total number of cases on Nth day.

Sample Input: 1 12 Sample Output: 233

I will use c++. Problem Link: https://www.codechef.com/SHAK2021/problems/COVIN/

Debargha-arch commented 3 years ago

@Amit366 can you assign this same problem to me in Java? LGM-SOC'21

ShivanshuVishnoi commented 3 years ago

@Amit366 can you assign me this problem to solve in c++. LGM SOC'21

ShivanshuVishnoi commented 3 years ago

I created a pull request. Please review the solution Thank you

Amit366 commented 3 years ago

@ShivanshuVishnoi u aren't assigned then how can u send the PR

Debargha-arch commented 3 years ago

@Amit366 why is my PR closed?

Amit366 commented 3 years ago

@Debargha-arch it is not closed

Debargha-arch commented 3 years ago

Please merge my PR