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 17:00Yuriy LyfenkoYuriy LyfenkoScore: 13,280Success
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 17:005,97498,247,10226,884,89302,252,800
2Oct 16, 2021 17:005,99288,070,47926,963,11602,260,992
3Oct 16, 2021 17:005,99392,837,37126,970,69402,252,800
4Oct 16, 2021 17:0013,079245,373,53224,290,00034,566,00029,515,776
5Oct 16, 2021 17:0013,238253,681,86629,786,00029,786,00029,708,288
6Oct 16, 2021 17:0013,271251,668,44725,878,00033,841,00029,741,056
7Oct 16, 2021 17:0013,280249,473,43426,334,00033,424,00029,474,816
8Oct 16, 2021 17:0013,342257,013,48830,019,00030,019,00029,507,584
9Oct 16, 2021 17:0013,375252,776,45830,684,00029,504,00029,675,520
10Oct 16, 2021 17:0013,410254,481,54325,143,00035,200,00029,646,848
11Oct 16, 2021 17:0013,498254,062,29125,472,00035,269,00029,696,000
12Oct 16, 2021 17:0013,714255,770,82629,232,00032,480,00029,708,288