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:29Yuriy LyfenkoYuriy LyfenkoScore: 11,950Success
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:294,96080,245,55822,318,45402,265,088
2May 8, 2023 06:294,970111,144,48022,365,09502,256,896
3May 8, 2023 06:294,972100,409,86222,375,79102,252,800
4May 8, 2023 06:2911,923242,185,59621,668,00031,986,00029,708,288
5May 8, 2023 06:2911,930240,156,27120,259,00033,428,00029,511,680
6May 8, 2023 06:2911,933240,631,71719,113,00034,585,00029,675,520
7May 8, 2023 06:2911,950246,551,32422,143,00031,633,00029,667,328
8May 8, 2023 06:2912,002238,981,37618,624,00035,385,00029,728,768
9May 8, 2023 06:2912,070249,512,95023,762,00030,551,00029,741,056
10May 8, 2023 06:2912,082249,357,33221,957,00032,413,00029,675,520
11May 8, 2023 06:2912,123246,039,49323,718,00030,834,00029,704,192
12May 8, 2023 06:2912,245249,154,79023,448,00031,655,00029,745,152