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 01:46Yuriy LyfenkoYuriy LyfenkoScore: 15,712Success
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 01:468,32898,240,93337,476,58602,252,800
2Oct 11, 2021 01:468,34993,016,76837,570,72502,256,896
3Oct 11, 2021 01:468,35094,109,70137,577,08202,252,800
4Oct 11, 2021 01:4615,549261,949,83535,478,00034,493,00029,638,656
5Oct 11, 2021 01:4615,550257,790,13432,297,00037,680,00029,659,136
6Oct 11, 2021 01:4615,594266,162,56840,745,00029,426,00029,712,384
7Oct 11, 2021 01:4615,712263,628,59442,422,00028,281,00029,671,424
8Oct 11, 2021 01:4615,718265,059,45537,447,00033,286,00029,577,216
9Oct 11, 2021 01:4615,742259,862,92844,742,00026,099,00029,540,352
10Oct 11, 2021 01:4615,768275,112,14838,703,00032,252,00029,708,288
11Oct 11, 2021 01:4615,784260,495,41034,093,00036,934,00029,675,520
12Oct 11, 2021 01:4615,878264,308,21440,829,00030,622,00029,708,288