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 15, 2021 06:33Ilya AniskovetsIlya AniskovetsScore: 18,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 06:3310,957108,012,77649,304,44002,256,896
2Oct 15, 2021 06:3311,016102,812,67849,573,06302,256,896
3Oct 15, 2021 06:3311,320124,702,79550,940,98702,273,280
4Oct 15, 2021 06:3318,302272,190,44954,906,00027,453,00029,630,464
5Oct 15, 2021 06:3318,358266,602,64048,534,00034,077,00029,544,448
6Oct 15, 2021 06:3318,407279,568,52246,776,00036,057,00029,630,464
7Oct 15, 2021 06:3318,453266,410,98846,893,00036,147,00029,073,408
8Oct 15, 2021 06:3318,486275,792,08449,111,00034,077,00029,597,696
9Oct 15, 2021 06:3318,509272,890,01248,755,00034,535,00029,630,464
10Oct 15, 2021 06:3318,525270,611,47047,781,00035,582,00029,761,536
11Oct 15, 2021 06:3318,561272,002,39652,863,00030,661,00029,597,696
12Oct 15, 2021 06:3318,619270,996,73352,918,00030,869,00029,757,440