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 listOct 12, 2021 22:46Yurkov AlekseyYurkov AlekseyScore: 16,874Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 22:469,670115,915,42643,514,13302,273,280
2Oct 12, 2021 22:469,702100,024,36943,659,73002,269,184
3Oct 12, 2021 22:469,707112,064,06643,679,73702,260,992
4Oct 12, 2021 22:4616,707260,001,85241,768,00033,414,00029,552,640
5Oct 12, 2021 22:4616,743266,007,59638,148,00037,194,00029,552,640
6Oct 12, 2021 22:4616,856264,335,82339,403,00036,447,00029,597,696
7Oct 12, 2021 22:4616,874265,247,87447,897,00028,037,00029,556,736
8Oct 12, 2021 22:4616,888270,817,85342,105,00033,890,00029,630,464
9Oct 12, 2021 22:4616,917261,826,92639,039,00037,087,00029,630,464
10Oct 12, 2021 22:4616,985273,840,53144,768,00031,665,00029,732,864
11Oct 12, 2021 22:4617,066269,012,19142,664,00034,131,00029,663,232
12Oct 12, 2021 22:4617,094269,145,90141,580,00035,343,00029,630,464