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 16, 2021 09:37Ilya AniskovetsIlya AniskovetsScore: 16,402Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 09:379,264109,609,96041,688,32902,232,320
2Oct 16, 2021 09:379,264109,506,12241,689,42402,248,704
3Oct 16, 2021 09:379,387127,609,61342,239,94102,252,800
4Oct 16, 2021 09:3716,231265,080,13841,284,00031,757,00029,708,288
5Oct 16, 2021 09:3716,372264,359,15137,805,00035,867,00029,499,392
6Oct 16, 2021 09:3716,392263,748,77242,004,00031,759,00029,675,520
7Oct 16, 2021 09:3716,402270,191,13640,443,00033,365,00029,552,640
8Oct 16, 2021 09:3716,490266,756,73942,559,00031,646,00029,663,232
9Oct 16, 2021 09:3716,533260,538,51544,418,00029,982,00029,708,288
10Oct 16, 2021 09:3716,550262,853,19244,463,00030,013,00029,679,616
11Oct 16, 2021 09:3716,565260,897,35240,846,00033,698,00029,708,288
12Oct 16, 2021 09:3716,568270,648,25536,819,00037,739,00029,732,864