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 19:08Yuriy LyfenkoYuriy LyfenkoScore: 13,365Success
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 19:086,084103,714,50427,376,74002,248,704
2Oct 15, 2021 19:086,08693,966,86327,388,36502,244,608
3Oct 15, 2021 19:086,09998,080,31627,446,85402,252,800
4Oct 15, 2021 19:0813,280253,033,99027,260,00032,502,00029,679,616
5Oct 15, 2021 19:0813,356256,248,66730,640,00029,461,00029,540,352
6Oct 15, 2021 19:0813,363243,427,93828,953,00031,180,00029,663,232
7Oct 15, 2021 19:0813,365245,616,75325,635,00034,509,00029,675,520
8Oct 15, 2021 19:0813,505247,059,24127,721,00033,052,00029,708,288
9Oct 15, 2021 19:0813,550252,536,14125,571,00035,406,00029,634,560
10Oct 15, 2021 19:0813,558249,165,73430,505,00030,505,00029,515,776
11Oct 15, 2021 19:0813,566245,981,34130,523,00030,523,00029,544,448
12Oct 15, 2021 19:0813,593258,003,50027,901,00033,266,00029,736,960