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 10, 2021 22:30Yuriy LyfenkoYuriy LyfenkoScore: 22,608Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:3017,140133,248,79277,129,82502,277,376
2Oct 10, 2021 22:3017,140142,514,39077,130,94802,277,376
3Oct 10, 2021 22:3017,140143,215,31577,131,32802,273,280
4Oct 10, 2021 22:3022,463286,854,77368,410,00032,673,00029,691,904
5Oct 10, 2021 22:3022,560291,705,40268,019,00033,501,00029,495,296
6Oct 10, 2021 22:3022,602290,695,51869,535,00032,173,00029,761,536
7Oct 10, 2021 22:3022,608288,547,40266,828,00034,910,00029,556,736
8Oct 10, 2021 22:3022,625289,690,48467,538,00034,273,00029,650,944
9Oct 10, 2021 22:3022,696288,849,83172,032,00030,102,00029,650,944
10Oct 10, 2021 22:3022,706291,360,96078,690,00023,489,00029,671,424
11Oct 10, 2021 22:3022,715294,277,23271,340,00030,878,00029,593,600
12Oct 10, 2021 22:3022,778290,803,85370,800,00031,701,00029,749,248