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 29, 2024 16:42AnSaAnSaScore: 22,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2024 16:4213,523124,887,52860,853,54302,285,568
2Jun 29, 2024 16:4213,526113,695,67360,866,00102,269,184
3Jun 29, 2024 16:4213,550121,327,23060,972,81602,273,280
4Jun 29, 2024 16:4222,172289,513,59866,517,00033,258,00029,556,736
5Jun 29, 2024 16:4222,198286,866,67364,287,00035,605,00029,622,272
6Jun 29, 2024 16:4222,392292,261,50867,484,00033,279,00029,466,624
7Jun 29, 2024 16:4222,410296,633,60262,523,00038,321,00029,630,464
8Jun 29, 2024 16:4222,546299,748,30262,849,00038,607,00029,696,000
9Jun 29, 2024 16:4222,682298,458,16375,960,00026,111,00029,712,384
10Jun 29, 2024 16:4222,715300,221,56768,477,00033,742,00029,691,904
11Jun 29, 2024 16:4222,763300,430,09662,963,00039,469,00029,552,640
12Jun 29, 2024 16:4222,854301,347,55264,856,00037,987,00029,564,928