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 listJun 12, 2023 22:02Victor MuñozVictor MuñozScore: 10,980Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 22:033,52378,959,07715,855,00902,244,608
2Jun 12, 2023 22:033,52977,029,30215,881,14202,252,800
3Jun 12, 2023 22:033,54399,432,10715,941,31602,248,704
4Jun 12, 2023 22:023,54461,842,18415,949,91802,252,800
5Jun 12, 2023 22:023,54982,424,46315,971,30302,256,896
6Jun 12, 2023 22:023,56172,931,73616,025,24802,248,704
7Jun 12, 2023 22:0310,875242,120,50614,981,00033,957,00029,675,520
8Jun 12, 2023 22:0310,941233,863,09115,446,00033,789,00029,601,792
9Jun 12, 2023 22:0310,953235,186,31916,430,00032,860,00029,663,232
10Jun 12, 2023 22:0210,971238,470,54016,120,00033,248,00029,667,328
11Jun 12, 2023 22:0310,975250,449,59216,462,00032,924,00029,581,312
12Jun 12, 2023 22:0210,976238,081,11113,720,00035,673,00029,544,448
13Jun 12, 2023 22:0310,980244,511,74416,470,00032,940,00029,659,136
14Jun 12, 2023 22:0211,012242,024,24217,618,00031,934,00029,655,040
15Jun 12, 2023 22:0211,021239,274,44517,712,00031,882,00029,442,048
16Jun 12, 2023 22:0211,022240,751,69616,174,00033,426,00029,577,216
17Jun 12, 2023 22:0311,042234,515,38615,588,00034,099,00029,528,064
18Jun 12, 2023 22:0211,049248,989,30415,009,00034,710,00029,671,424
19Jun 12, 2023 22:0311,088237,899,84519,009,00030,889,00029,663,232
20Jun 12, 2023 22:0211,094237,958,29017,415,00032,509,00029,663,232
21Jun 12, 2023 22:0211,164249,337,24317,473,00032,763,00029,704,192
22Jun 12, 2023 22:0311,232252,643,08514,704,00035,842,00029,507,584
23Jun 12, 2023 22:0211,388246,202,14818,535,00032,710,00029,671,424
24Jun 12, 2023 22:0311,392249,511,53218,642,00032,623,00029,573,120