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 12, 2021 22:35Yurkov AlekseyYurkov AlekseyScore: 17,174Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 22:359,662101,405,56243,479,44802,265,088
2Oct 12, 2021 22:359,677111,683,91843,547,62602,273,280
3Oct 12, 2021 22:359,724112,263,40843,758,65602,260,992
4Oct 12, 2021 22:3516,967264,198,86942,639,00033,714,00029,548,544
5Oct 12, 2021 22:3517,133269,232,05942,607,00034,491,00029,630,464
6Oct 12, 2021 22:3517,174261,674,73843,862,00033,419,00029,540,352
7Oct 12, 2021 22:3517,174265,424,27543,864,00033,420,00029,671,424
8Oct 12, 2021 22:3517,191262,804,26943,906,00033,452,00029,540,352
9Oct 12, 2021 22:3517,199261,289,42242,772,00034,625,00029,552,640
10Oct 12, 2021 22:3517,203270,547,27744,983,00032,429,00029,560,832
11Oct 12, 2021 22:3517,265267,521,77849,863,00027,830,00029,630,464
12Oct 12, 2021 22:3517,387265,453,81345,015,00033,225,00029,630,464