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:28Andrey TsvetkovAndrey TsvetkovScore: 26,371Success
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:2818,761157,454,43884,426,59602,244,608
2Oct 11, 2021 05:2818,773145,553,08584,477,36402,236,416
3Oct 11, 2021 05:2818,790140,233,44384,553,24802,240,512
4Oct 11, 2021 05:2826,279308,557,01287,907,00030,348,00029,573,120
5Oct 11, 2021 05:2826,342307,672,11985,840,00032,701,00029,573,120
6Oct 11, 2021 05:2826,351310,775,52680,016,00038,562,00029,556,736
7Oct 11, 2021 05:2826,371309,263,24589,803,00028,865,00029,736,960
8Oct 11, 2021 05:2826,388302,517,32987,013,00031,734,00029,671,424
9Oct 11, 2021 05:2826,455304,963,60783,629,00035,419,00029,638,656
10Oct 11, 2021 05:2826,462306,439,08687,255,00031,822,00029,638,656
11Oct 11, 2021 05:2826,468313,227,18791,206,00027,898,00029,577,216
12Oct 11, 2021 05:2826,484307,665,32688,318,00030,858,00029,569,024