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:39Andrey TsvetkovAndrey TsvetkovScore: 26,228Success
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:3918,651144,008,74583,931,47202,228,224
2Oct 11, 2021 05:3918,677143,392,60084,045,74402,240,512
3Oct 11, 2021 05:3918,681145,228,28484,066,25102,232,320
4Oct 11, 2021 05:3926,120305,884,03791,421,00026,120,00029,769,728
5Oct 11, 2021 05:3926,171305,079,14184,998,00032,770,00029,564,928
6Oct 11, 2021 05:3926,179315,000,92689,151,00028,655,00029,671,424
7Oct 11, 2021 05:3926,228307,707,38181,263,00036,762,00029,724,672
8Oct 11, 2021 05:3926,284306,331,96188,707,00029,569,00029,577,216
9Oct 11, 2021 05:3926,295304,334,89684,234,00034,094,00029,573,120
10Oct 11, 2021 05:3926,313305,872,07682,886,00035,522,00029,655,040
11Oct 11, 2021 05:3926,578311,205,57388,906,00030,694,00029,503,488
12Oct 11, 2021 05:3926,618313,677,22494,683,00025,096,00029,769,728