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:24Yuriy LyfenkoYuriy LyfenkoScore: 14,488Success
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:247,18087,678,25232,311,77002,215,936
2May 10, 2023 03:247,183100,505,16632,321,53902,215,936
3May 10, 2023 03:247,21391,839,15032,456,54802,224,128
4May 10, 2023 03:2414,417256,360,75332,989,00031,889,00029,564,928
5May 10, 2023 03:2414,468252,216,00030,050,00035,058,00029,573,120
6May 10, 2023 03:2414,481252,670,95730,608,00034,558,00029,569,024
7May 10, 2023 03:2414,488253,196,93232,080,00033,114,00029,671,424
8May 10, 2023 03:2414,498257,384,24731,601,00033,640,00029,671,424
9May 10, 2023 03:2414,575257,000,52031,736,00033,852,00029,671,424
10May 10, 2023 03:2414,576257,871,71628,938,00036,655,00029,601,792
11May 10, 2023 03:2414,675254,819,62433,578,00032,459,00029,704,192
12May 10, 2023 03:2414,866258,130,77136,384,00030,515,00029,560,832