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 03:07Yuriy LyfenkoYuriy LyfenkoScore: 14,526Success
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 03:077,50974,528,72833,791,65402,240,512
2May 8, 2023 03:077,517107,611,34333,827,49002,252,800
3May 8, 2023 03:077,66285,541,25534,477,93102,244,608
4May 8, 2023 03:0714,459261,840,57633,582,00031,483,00029,544,448
5May 8, 2023 03:0714,480249,292,98230,219,00034,941,00029,708,288
6May 8, 2023 03:0714,513261,666,50032,654,00032,654,00029,671,424
7May 8, 2023 03:0714,526254,605,79827,889,00037,476,00029,659,136
8May 8, 2023 03:0714,541249,779,82532,717,00032,717,00029,671,424
9May 8, 2023 03:0714,606264,232,69430,871,00034,854,00029,675,520
10May 8, 2023 03:0714,659257,813,16836,281,00029,684,00029,696,000
11May 8, 2023 03:0714,660253,443,96730,157,00035,812,00029,671,424
12May 8, 2023 03:0714,836261,110,76339,341,00027,419,00029,708,288