+ 12

Quizz time XI Back to the future.

in the future, a mad engineer accidently found time machine. he use the machine to go back in the past and change history (by stealing idea from Bill Gates, Steve Job, and Larry Page). he go at 20.30 , November 2 2040. he turn the machine to back 1899999000 second in the past. he arrived at somewhere in the past. after a while future police arrest him and transport back to the future exactly at 2 am in August 20 1980. Question how many time the mad engineer spent his time in the past?

9th Apr 2017, 10:09 AM
Agus Mei
+ 14
Mad scientist goes back to August 19, 1980 03:00. So, he gets arrested in 23 hours.
9th Apr 2017, 10:37 AM
Krishna Teja Yeluripati
+ 15
:'-(
9th Apr 2017, 10:18 AM
annie
+ 15
Oh, I thought the time he travelled counted.... Next time explain it better -_-
9th Apr 2017, 10:56 AM
Gami
9th Apr 2017, 11:04 AM
Krishna Teja Yeluripati
+ 15
It's daylight savings JavaScript code by @Nikolay is one hour ahead Java code by @Krishna shows UTC time The answer changes depending on when you ask it So is the final answer 22 or 23? π
9th Apr 2017, 3:43 PM
Jafca
+ 14
Does it count the time when he travelled using the time machine?
9th Apr 2017, 10:36 AM
Gami
+ 14
I think the answer is 36 years, 10 months, 11 days and 6 hours...
9th Apr 2017, 10:40 AM
Gami
+ 12
@Nikolay I also get 22 hours when I run your code. I don't understand what's going on, could it be due to different time zones or daylight saving?
9th Apr 2017, 1:14 PM
Michael Foster
+ 11
well..., my JS says it's 22 hours. [SOLVED thanks to Jafca] problem was one of the dates is within daylight saving π https://code.sololearn.com/W5tGBbrDrkA0/?ref=app
9th Apr 2017, 11:05 AM
Nikolay Nachev
+ 11
@Krishna on my phone and PC it outputs 22 π² now the reall quizz is to figure out why you get different output than mine π€
9th Apr 2017, 11:09 AM
Nikolay Nachev
+ 10
@Nikolay : Your code says 23 hours, not 22.
9th Apr 2017, 11:06 AM
Krishna Teja Yeluripati
+ 10
@Agus Mei You are really lucky. World's best programmers are creating and posting codes on your question(quiz). #I feel very puny(tiny) here. π²
9th Apr 2017, 11:21 AM
Cyrus Ornob Corraya
+ 9
π²ππ΅
9th Apr 2017, 10:12 AM
Sachin Artani
+ 9
5 hours 30 minutes
9th Apr 2017, 10:31 AM
Nikhil
+ 9
@Krishna You are great. ππππ
9th Apr 2017, 10:40 AM
Agus Mei
+ 9
@Nikolay Sir i run your code in playground the result is 23 hour
9th Apr 2017, 11:11 AM
Agus Mei
+ 9
@Cyrus : 220 Red, 670 Blue, 100 Green, 10 Yellow.
9th Apr 2017, 11:12 AM
Krishna Teja Yeluripati
+ 9
@Utkarsh Some of my previous question are come from my experience as teacher. Some are created as challenge like Cookies Factory (for Hatsy Rei) The 10 integer (for @Krishna) lollipop (for Cyrus) but everyone can answer it. @Jafca The answer is 23. but i don't know about daylight saving.
9th Apr 2017, 10:24 PM
Agus Mei
+ 8
Now i am having a streak of wrong answersπππ
9th Apr 2017, 10:42 AM
Nikhil
+ 8
No. problem I have done it myself. And I calculated right. First time I made a simple mistake. :(
9th Apr 2017, 10:43 AM
Cyrus Ornob Corraya