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 06:15Ilya AniskovetsIlya AniskovetsScore: 18,425Success
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 06:1511,183106,347,05450,322,22102,260,992
2Oct 15, 2021 06:1511,203106,812,43650,414,09802,273,280
3Oct 15, 2021 06:1511,257111,708,43850,658,60102,273,280
4Oct 15, 2021 06:1518,250266,251,09850,540,00031,587,00029,696,000
5Oct 15, 2021 06:1518,346271,451,37848,502,00034,055,00029,614,080
6Oct 15, 2021 06:1518,399272,313,24250,952,00031,845,00029,630,464
7Oct 15, 2021 06:1518,425267,964,81248,110,00034,802,00029,663,232
8Oct 15, 2021 06:1518,430267,012,31951,974,00030,963,00029,491,200
9Oct 15, 2021 06:1518,437269,219,13750,410,00032,556,00029,630,464
10Oct 15, 2021 06:1518,478268,959,87151,836,00031,317,00029,544,448
11Oct 15, 2021 06:1518,481269,808,22641,582,00041,582,00029,659,136
12Oct 15, 2021 06:1518,781282,742,20150,708,00033,805,00029,544,448