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:45Yuriy LyfenkoYuriy LyfenkoScore: 16,372Success
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:459,323105,754,64141,953,66702,256,896
2Oct 11, 2021 01:459,329102,226,10341,981,08302,248,704
3Oct 11, 2021 01:459,345110,409,70142,050,31102,248,704
4Oct 11, 2021 01:4516,299258,512,72141,766,00031,579,00029,708,288
5Oct 11, 2021 01:4516,327259,365,04741,265,00032,206,00029,548,544
6Oct 11, 2021 01:4516,358270,483,02743,739,00029,870,00029,642,752
7Oct 11, 2021 01:4516,372267,790,76738,829,00034,846,00029,667,328
8Oct 11, 2021 01:4516,443270,296,07442,894,00031,098,00029,704,192
9Oct 11, 2021 01:4516,455263,214,02942,759,00031,287,00029,675,520
10Oct 11, 2021 01:4516,460262,832,80840,587,00033,484,00029,708,288
11Oct 11, 2021 01:4516,474274,256,37340,720,00033,411,00029,544,448
12Oct 11, 2021 01:4516,532265,992,59740,213,00034,181,00029,573,120