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 listDec 6, 2024 18:49E SequeiraE SequeiraScore: 23,022Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 19:0822,713291,189,50865,846,00036,362,00029,630,464
2Dec 6, 2024 19:0822,794288,298,01871,172,00031,399,00029,630,464
3Dec 6, 2024 18:4922,823290,681,80071,581,00031,122,00029,503,488
4Dec 6, 2024 19:0822,825292,320,31865,274,00037,437,00029,642,752
5Dec 6, 2024 18:4922,851291,832,34270,301,00032,527,00029,757,440
6Dec 6, 2024 19:0822,858295,252,81371,788,00031,072,00029,634,560
7Dec 6, 2024 19:0822,905289,043,18270,469,00032,605,00029,757,440
8Dec 6, 2024 18:4922,914286,668,57971,866,00031,246,00029,503,488
9Dec 6, 2024 18:4922,991291,525,75977,595,00025,865,00029,503,488
10Dec 6, 2024 19:0823,022289,731,44368,081,00035,520,00029,659,136
11Dec 6, 2024 18:4923,028299,521,43770,099,00033,525,00029,630,464
12Dec 6, 2024 19:0823,045295,487,27567,161,00036,543,00029,659,136
13Dec 6, 2024 19:0823,060295,588,35672,003,00031,766,00029,765,632
14Dec 6, 2024 18:4923,087302,673,42771,028,00032,863,00029,773,824
15Dec 6, 2024 18:4923,142305,992,77868,405,00035,734,00029,634,560
16Dec 6, 2024 19:0823,155298,291,70372,300,00031,897,00029,728,768
17Dec 6, 2024 18:4923,190289,161,44071,680,00032,677,00029,691,904
18Dec 6, 2024 18:4923,202302,945,01365,740,00038,670,00029,765,632