+ 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?
38 Answers
+ 14
Mad scientist goes back to August 19, 1980 03:00. So, he gets arrested in 23 hours.
+ 15
:'-(
+ 15
Oh, I thought the time he travelled counted.... Next time explain it better -_-
+ 15
Here's the program.
https://code.sololearn.com/csBZRMJDVE0F/?ref=app
+ 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? 😕
+ 14
Does it count the time when he travelled using the time machine?
+ 14
I think the answer is 36 years, 10 months, 11 days and 6 hours...
+ 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?
+ 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
+ 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 🤓
+ 10
@Nikolay : Your code says 23 hours, not 22.
+ 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. 😲
+ 9
😲😌😵
+ 9
5 hours 30 minutes
+ 9
@Krishna
You are great.
😄😄😄😄
+ 9
@Nikolay Sir
i run your code in playground
the result is 23 hour
+ 9
@Cyrus : 220 Red, 670 Blue, 100 Green, 10 Yellow.
+ 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.
+ 8
Now i am having a streak of wrong answers😎😏😏
+ 8
No. problem I have done it myself. And I calculated right. First time I made a simple mistake. :(