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 listDec 7, 2024 15:40E SequeiraE SequeiraScore: 21,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 7, 2024 15:3821,021284,388,31259,240,00035,353,00029,659,136
2Dec 7, 2024 15:4021,040279,393,83462,777,00031,903,00029,708,288
3Dec 7, 2024 15:4021,062278,806,24858,996,00035,784,00029,679,616
4Dec 7, 2024 15:4021,098279,932,97358,498,00036,441,00029,458,432
5Dec 7, 2024 15:4021,170280,288,77661,820,00033,443,00029,544,448
6Dec 7, 2024 15:3821,274286,207,60761,762,00033,969,00029,659,136
7Dec 7, 2024 15:4021,276283,540,65966,698,00029,046,00029,528,064
8Dec 7, 2024 15:4021,352289,715,34164,753,00031,332,00029,626,368
9Dec 7, 2024 15:4021,491287,629,53559,588,00037,120,00029,495,296
10Dec 7, 2024 15:3821,533289,698,93464,599,00032,299,00029,659,136
11Dec 7, 2024 15:4021,552291,336,94660,615,00036,369,00029,499,392
12Dec 7, 2024 15:4021,559283,532,16565,754,00031,260,00029,659,136