Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listJun 28, 2024 14:43AnSaAnSaScore: 24,822Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2024 14:4315,689132,095,24570,602,35702,277,376
2Jun 28, 2024 14:4315,790131,769,49171,053,31902,285,568
3Jun 28, 2024 14:4315,821142,883,16771,195,49102,281,472
4Jun 28, 2024 14:4324,026292,238,66771,356,00036,759,00029,556,736
5Jun 28, 2024 14:4324,752310,215,35075,233,00036,151,00029,630,464
6Jun 28, 2024 14:4324,814314,101,17666,607,00045,058,00029,724,672
7Jun 28, 2024 14:4324,822312,044,28675,126,00036,574,00029,720,576
8Jun 28, 2024 14:4324,913310,017,13072,603,00039,504,00029,495,296
9Jun 28, 2024 14:4324,920317,417,11881,558,00030,584,00029,630,464
10Jun 28, 2024 14:4324,923310,128,51881,469,00030,683,00029,667,328
11Jun 28, 2024 14:4324,978310,366,86968,798,00043,604,00029,569,024
12Jun 28, 2024 14:4325,059312,172,95380,399,00032,368,00029,634,560