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 10, 2021 23:32Yurkov AlekseyYurkov AlekseyScore: 20,196Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 23:3212,742116,493,48157,336,91202,285,568
2Oct 10, 2021 23:3212,742130,103,46557,339,93102,277,376
3Oct 10, 2021 23:3212,750128,263,52257,373,78802,269,184
4Oct 10, 2021 23:3220,122280,276,54757,992,00032,557,00029,552,640
5Oct 10, 2021 23:3220,180276,902,60451,490,00039,320,00029,728,768
6Oct 10, 2021 23:3220,194279,586,45453,010,00037,864,00029,548,544
7Oct 10, 2021 23:3220,196279,309,35255,321,00035,563,00029,528,064
8Oct 10, 2021 23:3220,208275,880,83756,583,00034,354,00029,630,464
9Oct 10, 2021 23:3220,213277,875,96953,220,00037,738,00029,630,464
10Oct 10, 2021 23:3220,239280,014,36457,577,00033,499,00029,757,440
11Oct 10, 2021 23:3220,374275,385,95959,702,00031,983,00029,630,464
12Oct 10, 2021 23:3220,413278,451,50959,127,00032,731,00029,630,464