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:54Yuriy LyfenkoYuriy LyfenkoScore: 15,630Success
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:548,345103,731,95437,553,10702,260,992
2Oct 11, 2021 01:548,347107,408,17937,560,48202,256,896
3Oct 11, 2021 01:548,349108,226,41037,568,39502,244,608
4Oct 11, 2021 01:5415,422254,306,75237,760,00031,637,00029,704,192
5Oct 11, 2021 01:5415,511262,276,66235,897,00033,903,00029,675,520
6Oct 11, 2021 01:5415,554257,815,75335,997,00033,997,00029,708,288
7Oct 11, 2021 01:5415,630257,937,93639,429,00030,904,00029,675,520
8Oct 11, 2021 01:5415,660265,850,59538,343,00032,125,00029,667,328
9Oct 11, 2021 01:5415,676262,160,20037,903,00032,639,00029,671,424
10Oct 11, 2021 01:5415,709265,661,72837,982,00032,707,00029,577,216
11Oct 11, 2021 01:5415,737259,512,81038,051,00032,766,00029,605,888
12Oct 11, 2021 01:5415,811263,656,53838,809,00032,341,00029,704,192