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:10Yuriy LyfenkoYuriy LyfenkoScore: 13,194Success
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:106,02792,026,67027,120,77502,248,704
2Oct 15, 2021 19:106,03089,646,42527,136,95402,248,704
3Oct 15, 2021 19:106,03491,986,47227,151,87102,260,992
4Oct 15, 2021 19:1013,043251,959,91126,310,00032,382,00029,659,136
5Oct 15, 2021 19:1013,169252,925,68325,679,00033,581,00029,544,448
6Oct 15, 2021 19:1013,193248,885,60029,684,00029,684,00029,675,520
7Oct 15, 2021 19:1013,194245,510,12225,729,00033,646,00029,667,328
8Oct 15, 2021 19:1013,236246,680,42825,810,00033,752,00029,708,288
9Oct 15, 2021 19:1013,242248,357,74124,421,00035,166,00029,650,944
10Oct 15, 2021 19:1013,302257,728,35926,378,00033,480,00029,663,232
11Oct 15, 2021 19:1013,342250,462,17126,913,00033,124,00029,573,120
12Oct 15, 2021 19:1013,484250,710,91129,744,00030,934,00029,663,232