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 listMay 10, 2023 03:18Yuriy LyfenkoYuriy LyfenkoScore: 21,702Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 03:1814,398132,017,14064,790,92802,232,320
2May 10, 2023 03:1814,399124,403,97164,793,85302,236,416
3May 10, 2023 03:1814,403125,571,64664,814,67802,240,512
4May 10, 2023 03:1821,556295,322,25265,012,00031,990,00029,573,120
5May 10, 2023 03:1821,668295,621,89562,048,00035,456,00029,569,024
6May 10, 2023 03:1821,688286,265,74363,386,00034,208,00029,544,448
7May 10, 2023 03:1821,702280,334,12062,420,00035,237,00029,736,960
8May 10, 2023 03:1821,742287,598,06162,535,00035,302,00029,732,864
9May 10, 2023 03:1821,742286,148,75464,882,00032,956,00029,577,216
10May 10, 2023 03:1821,774287,600,73562,989,00034,993,00029,655,040
11May 10, 2023 03:1821,798291,066,19361,798,00036,294,00029,581,312
12May 10, 2023 03:1821,807291,005,18867,601,00030,529,00029,569,024