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 15, 2021 23:25Yurkov AlekseyYurkov AlekseyScore: 16,493Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 23:259,167117,904,64041,250,59202,277,376
2Oct 15, 2021 23:259,178125,089,38041,299,84702,269,184
3Oct 15, 2021 23:259,182107,602,21041,320,28302,260,992
4Oct 15, 2021 23:2516,380256,296,39139,843,00033,867,00029,491,200
5Oct 15, 2021 23:2516,396256,337,59639,965,00033,817,00029,548,544
6Oct 15, 2021 23:2516,465265,025,48738,997,00035,097,00029,548,544
7Oct 15, 2021 23:2516,493260,269,23039,583,00034,635,00029,622,272
8Oct 15, 2021 23:2516,497259,746,46439,124,00035,111,00029,663,232
9Oct 15, 2021 23:2516,546258,543,28340,899,00033,558,00029,630,464
10Oct 15, 2021 23:2516,554260,196,85545,148,00029,346,00029,663,232
11Oct 15, 2021 23:2516,568258,565,07041,420,00033,136,00029,548,544
12Oct 15, 2021 23:2516,641264,269,51841,033,00033,852,00029,495,296