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 25, 2021 03:53Yuriy LyfenkoYuriy LyfenkoScore: 18,704Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 25, 2021 03:5311,556121,109,89152,002,81802,199,552
2Oct 25, 2021 03:5311,562130,588,19452,029,56902,215,936
3Oct 25, 2021 03:5311,564118,625,03552,037,64902,203,648
4Oct 25, 2021 03:5318,401266,293,28454,141,00028,663,00029,671,424
5Oct 25, 2021 03:5318,621274,632,53453,794,00030,000,00029,605,888
6Oct 25, 2021 03:5318,649273,126,44749,366,00034,556,00029,736,960
7Oct 25, 2021 03:5318,704271,740,77548,230,00035,936,00029,523,968
8Oct 25, 2021 03:5318,768279,837,43854,843,00029,615,00029,638,656
9Oct 25, 2021 03:5318,835276,163,12455,419,00029,339,00029,536,256
10Oct 25, 2021 03:5318,899272,513,78247,778,00037,266,00029,638,656
11Oct 25, 2021 03:5318,932275,624,80345,874,00039,320,00029,499,392
12Oct 25, 2021 03:5319,017275,850,04649,920,00035,657,00029,704,192