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 00:55Yuriy LyfenkoYuriy LyfenkoScore: 17,168Success
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 00:559,851111,030,56744,330,90002,252,800
2Oct 11, 2021 00:559,852114,056,73144,332,72602,244,608
3Oct 11, 2021 00:559,856119,556,54044,349,96602,248,704
4Oct 11, 2021 00:5517,119266,717,27840,896,00036,141,00029,675,520
5Oct 11, 2021 00:5517,130266,078,89643,047,00034,037,00029,708,288
6Oct 11, 2021 00:5517,142270,454,04347,804,00029,334,00029,712,384
7Oct 11, 2021 00:5517,168272,338,77445,936,00031,320,00029,671,424
8Oct 11, 2021 00:5517,262268,944,58743,949,00033,728,00029,745,152
9Oct 11, 2021 00:5517,306263,763,51743,038,00034,840,00029,716,480
10Oct 11, 2021 00:5517,321276,832,86544,688,00033,256,00029,577,216
11Oct 11, 2021 00:5517,344265,303,55947,269,00030,780,00029,577,216
12Oct 11, 2021 00:5517,397275,714,02944,294,00033,993,00029,675,520