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:52Yuriy LyfenkoYuriy LyfenkoScore: 15,481Success
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:528,19495,887,37036,871,37202,252,800
2Oct 11, 2021 01:528,198102,741,63436,892,38202,256,896
3Oct 11, 2021 01:528,203127,604,30236,913,63402,248,704
4Oct 11, 2021 01:5215,359258,084,14531,013,00038,102,00029,540,352
5Oct 11, 2021 01:5215,452261,727,54235,760,00033,773,00029,478,912
6Oct 11, 2021 01:5215,472262,074,28033,846,00035,780,00029,708,288
7Oct 11, 2021 01:5215,481262,738,25633,439,00036,225,00029,577,216
8Oct 11, 2021 01:5215,548268,799,95640,146,00029,822,00029,679,616
9Oct 11, 2021 01:5215,567257,459,98638,918,00031,134,00029,708,288
10Oct 11, 2021 01:5215,624265,348,26940,824,00029,484,00029,519,872
11Oct 11, 2021 01:5215,655261,457,58935,223,00035,223,00029,708,288
12Oct 11, 2021 01:5215,713258,951,15835,867,00034,843,00029,540,352