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 8, 2023 06:10Yuriy LyfenkoYuriy LyfenkoScore: 12,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:105,21998,263,39323,483,41802,252,800
2May 8, 2023 06:105,22080,669,04623,487,75602,248,704
3May 8, 2023 06:105,22688,014,34423,517,35602,240,512
4May 8, 2023 06:1012,203240,075,54624,162,00030,752,00029,716,480
5May 8, 2023 06:1012,268243,450,90725,395,00029,812,00029,671,424
6May 8, 2023 06:1012,280247,616,47224,314,00030,946,00029,741,056
7May 8, 2023 06:1012,301240,367,85419,703,00035,653,00029,544,448
8May 8, 2023 06:1012,329246,948,33427,123,00028,356,00029,736,960
9May 8, 2023 06:1012,336249,654,51823,314,00032,196,00029,679,616
10May 8, 2023 06:1012,346246,003,63724,943,00030,612,00029,663,232
11May 8, 2023 06:1012,432250,095,31222,378,00033,568,00029,671,424
12May 8, 2023 06:1012,557251,388,08223,456,00033,052,00029,675,520