+ 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
Agus Mei - avatar
38 odpowiedzi
+ 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
Krishna Teja Yeluripati - avatar
+ 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
Gami - avatar
9th Apr 2017, 11:04 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 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
Jafca - avatar
+ 14
Does it count the time when he travelled using the time machine?
9th Apr 2017, 10:36 AM
Gami
Gami - avatar
+ 14
I think the answer is 36 years, 10 months, 11 days and 6 hours...
9th Apr 2017, 10:40 AM
Gami
Gami - avatar
+ 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
Michael Foster - avatar
+ 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
Nikolay Nachev - avatar
+ 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
Nikolay Nachev - avatar
+ 10
@Nikolay : Your code says 23 hours, not 22.
9th Apr 2017, 11:06 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 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
Cyrus Ornob Corraya - avatar
+ 9
😲😌😵
9th Apr 2017, 10:12 AM
Sachin Artani
Sachin Artani - avatar
+ 9
5 hours 30 minutes
9th Apr 2017, 10:31 AM
Nikhil
Nikhil - avatar
+ 9
@Krishna You are great. 😄😄😄😄
9th Apr 2017, 10:40 AM
Agus Mei
Agus Mei - avatar
+ 9
@Nikolay Sir i run your code in playground the result is 23 hour
9th Apr 2017, 11:11 AM
Agus Mei
Agus Mei - avatar
+ 9
@Cyrus : 220 Red, 670 Blue, 100 Green, 10 Yellow.
9th Apr 2017, 11:12 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 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
Agus Mei - avatar
+ 8
Now i am having a streak of wrong answers😎😏😏
9th Apr 2017, 10:42 AM
Nikhil
Nikhil - avatar
+ 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
Cyrus Ornob Corraya - avatar