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 17:44Andrey TsvetkovAndrey TsvetkovScore: 25,964Success
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 17:4418,219140,751,41381,985,79202,232,320
2Oct 10, 2021 17:4418,222146,986,21381,997,34402,220,032
3Oct 10, 2021 17:4418,227145,724,84582,022,84802,232,320
4Oct 10, 2021 17:4425,789302,280,58379,662,00036,389,00029,765,632
5Oct 10, 2021 17:4425,861302,654,16078,552,00037,821,00029,736,960
6Oct 10, 2021 17:4425,910302,929,55388,525,00028,069,00029,638,656
7Oct 10, 2021 17:4425,964310,554,60086,036,00030,803,00029,638,656
8Oct 10, 2021 17:4425,974301,449,42683,048,00033,834,00029,638,656
9Oct 10, 2021 17:4425,990304,925,49484,413,00032,544,00029,638,656
10Oct 10, 2021 17:4426,009307,613,84085,691,00031,350,00029,573,120
11Oct 10, 2021 17:4426,040308,501,76888,969,00028,209,00029,605,888
12Oct 10, 2021 17:4426,063306,588,43486,642,00030,641,00029,663,232