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 11, 2021 00:56Yuriy LyfenkoYuriy LyfenkoScore: 17,044Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 00:569,809111,901,77344,140,07002,265,088
2Oct 11, 2021 00:569,810105,855,99044,143,46202,248,704
3Oct 11, 2021 00:569,813105,584,38844,160,02002,256,896
4Oct 11, 2021 00:5616,812264,090,88148,953,00026,702,00029,667,328
5Oct 11, 2021 00:5616,975266,073,65744,813,00031,573,00029,736,960
6Oct 11, 2021 00:5616,985276,179,15645,647,00030,785,00029,507,584
7Oct 11, 2021 00:5617,044266,737,79640,776,00035,922,00029,667,328
8Oct 11, 2021 00:5617,104268,953,18542,982,00033,986,00029,708,288
9Oct 11, 2021 00:5617,129270,971,82244,963,00032,116,00029,642,752
10Oct 11, 2021 00:5617,133264,869,57548,047,00029,052,00029,708,288
11Oct 11, 2021 00:5617,238273,013,32244,325,00033,244,00029,540,352
12Oct 11, 2021 00:5617,354269,746,85748,234,00029,859,00029,712,384