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:34Andrey TsvetkovAndrey TsvetkovScore: 25,737Success
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:3418,079135,322,31281,354,53602,240,512
2Oct 11, 2021 05:3418,082138,940,92581,371,06902,228,224
3Oct 11, 2021 05:3418,137138,384,70281,616,22602,236,416
4Oct 11, 2021 05:3425,625305,773,98479,156,00036,157,00029,605,888
5Oct 11, 2021 05:3425,677308,120,54883,848,00031,698,00029,732,864
6Oct 11, 2021 05:3425,732304,052,17180,554,00035,242,00029,556,736
7Oct 11, 2021 05:3425,737306,184,96283,473,00032,345,00029,732,864
8Oct 11, 2021 05:3425,748306,376,67884,829,00031,035,00029,569,024
9Oct 11, 2021 05:3425,753312,171,60483,523,00032,365,00029,679,616
10Oct 11, 2021 05:3425,825300,592,47883,303,00032,909,00029,765,632
11Oct 11, 2021 05:3425,840303,651,27378,489,00037,791,00029,577,216
12Oct 11, 2021 05:3426,192317,375,05587,071,00030,793,00029,736,960