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:26Yuriy LyfenkoYuriy LyfenkoScore: 12,042Success
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:264,96998,804,68822,360,50402,256,896
2May 8, 2023 06:264,97088,371,71322,366,87602,256,896
3May 8, 2023 06:264,97086,208,33722,367,20502,256,896
4May 8, 2023 06:2611,957239,483,94821,523,00032,285,00029,675,520
5May 8, 2023 06:2611,965243,249,01320,558,00033,285,00029,708,288
6May 8, 2023 06:2612,022244,843,29119,931,00034,168,00029,712,384
7May 8, 2023 06:2612,042240,026,95423,707,00030,480,00029,712,384
8May 8, 2023 06:2612,043241,928,49121,253,00032,942,00029,671,424
9May 8, 2023 06:2612,065237,779,42522,161,00032,133,00029,577,216
10May 8, 2023 06:2612,086243,805,22819,777,00034,611,00029,704,192
11May 8, 2023 06:2612,091249,370,05220,403,00034,006,00029,544,448
12May 8, 2023 06:2612,119252,854,17420,579,00033,955,00029,478,912