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 05:29Andrey TsvetkovAndrey TsvetkovScore: 26,182Success
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 05:2918,509146,107,29483,289,06302,240,512
2Oct 11, 2021 05:2918,519154,764,89483,334,57002,248,704
3Oct 11, 2021 05:2918,556155,223,30983,502,63802,256,896
4Oct 11, 2021 05:2926,081302,184,00285,449,00031,915,00029,569,024
5Oct 11, 2021 05:2926,120304,671,02585,115,00032,424,00029,564,928
6Oct 11, 2021 05:2926,126300,971,60589,265,00028,303,00029,732,864
7Oct 11, 2021 05:2926,182307,663,58580,817,00037,000,00029,638,656
8Oct 11, 2021 05:2926,210304,807,77479,589,00038,356,00029,573,120
9Oct 11, 2021 05:2926,225306,760,56180,641,00037,370,00029,638,656
10Oct 11, 2021 05:2926,430309,641,95792,259,00026,677,00029,638,656
11Oct 11, 2021 05:2926,432311,453,65288,148,00030,798,00029,634,560
12Oct 11, 2021 05:2926,515310,348,19688,424,00030,895,00029,704,192