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:58Yuriy LyfenkoYuriy LyfenkoScore: 18,732Success
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:5810,12999,567,28545,578,67402,277,376
2Oct 11, 2021 00:5810,141111,483,59345,632,81402,281,472
3Oct 11, 2021 00:5810,149114,325,63245,669,24702,289,664
4Oct 11, 2021 00:5818,627269,211,23854,431,00029,392,00029,560,832
5Oct 11, 2021 00:5818,656270,180,15853,815,00030,136,00029,560,832
6Oct 11, 2021 00:5818,701275,200,00352,596,00031,557,00029,630,464
7Oct 11, 2021 00:5818,732273,678,77652,684,00031,610,00029,515,776
8Oct 11, 2021 00:5818,748274,273,43453,119,00031,247,00029,663,232
9Oct 11, 2021 00:5818,874279,391,72950,554,00034,377,00029,560,832
10Oct 11, 2021 00:5818,922275,461,98254,584,00030,567,00029,663,232
11Oct 11, 2021 00:5818,929279,695,66053,913,00031,269,00029,614,080
12Oct 11, 2021 00:5819,054274,971,17249,850,00035,892,00029,552,640