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 23:06Yuriy LyfenkoYuriy LyfenkoScore: 20,217Success
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 23:0612,960104,378,30558,318,22802,252,800
2Oct 10, 2021 23:0612,974120,529,29458,384,21902,248,704
3Oct 10, 2021 23:0612,988119,901,13858,444,34802,252,800
4Oct 10, 2021 23:0619,975287,433,63362,484,00027,405,00029,741,056
5Oct 10, 2021 23:0620,087281,536,14960,261,00030,130,00029,708,288
6Oct 10, 2021 23:0620,196277,682,74561,669,00029,212,00029,573,120
7Oct 10, 2021 23:0620,217280,895,95159,287,00031,688,00029,675,520
8Oct 10, 2021 23:0620,248287,682,04257,444,00033,674,00029,642,752
9Oct 10, 2021 23:0620,323286,614,95762,403,00029,049,00029,667,328
10Oct 10, 2021 23:0620,340280,719,77660,665,00030,865,00029,708,288
11Oct 10, 2021 23:0620,450283,653,31058,653,00033,371,00029,663,232
12Oct 10, 2021 23:0620,453286,121,22156,411,00035,628,00029,638,656