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:26Yuriy LyfenkoYuriy LyfenkoScore: 13,236Success
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:265,99294,152,92526,965,22302,252,800
2Oct 15, 2021 19:265,997107,542,75726,984,64602,248,704
3Oct 15, 2021 19:265,99798,086,87326,987,80302,248,704
4Oct 15, 2021 19:2613,160244,055,36223,880,00035,342,00029,659,136
5Oct 15, 2021 19:2613,173247,408,04322,336,00036,941,00029,675,520
6Oct 15, 2021 19:2613,234252,786,86624,814,00034,740,00029,712,384
7Oct 15, 2021 19:2613,236258,052,32225,674,00033,890,00029,667,328
8Oct 15, 2021 19:2613,258252,220,78527,119,00032,542,00029,708,288
9Oct 15, 2021 19:2613,330246,402,54827,849,00032,134,00029,663,232
10Oct 15, 2021 19:2613,335253,704,37327,371,00032,635,00029,675,520
11Oct 15, 2021 19:2613,340255,341,20226,454,00033,576,00029,528,064
12Oct 15, 2021 19:2613,396249,980,17426,122,00034,159,00029,708,288