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 11, 2021 09:03Sergey StreminSergey StreminScore: 15,889Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 09:038,642110,218,51338,890,44802,207,744
2Oct 11, 2021 09:038,646109,305,14538,907,24102,215,936
3Oct 11, 2021 09:038,649111,518,67638,918,45102,215,936
4Oct 11, 2021 09:0315,606253,546,87541,055,00029,171,00029,696,000
5Oct 11, 2021 09:0315,755256,508,60136,946,00033,950,00029,696,000
6Oct 11, 2021 09:0315,759264,569,72238,586,00032,328,00029,696,000
7Oct 11, 2021 09:0315,889263,305,24034,784,00036,716,00029,696,000
8Oct 11, 2021 09:0315,896260,947,97138,435,00033,097,00029,728,768
9Oct 11, 2021 09:0315,905264,170,93841,843,00029,731,00029,663,232
10Oct 11, 2021 09:0315,947275,665,52637,442,00034,321,00029,630,464
11Oct 11, 2021 09:0315,961261,126,78440,884,00030,939,00029,655,040
12Oct 11, 2021 09:0316,044274,260,98136,100,00036,100,00029,614,080