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 11:36Andrey TsvetkovAndrey TsvetkovScore: 131,081Success
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 11:3649,065273,439,222220,793,96002,256,896
2Oct 10, 2021 11:3649,136295,884,564221,111,08302,236,416
3Oct 10, 2021 11:3649,248288,326,613221,617,66402,277,376
4Oct 10, 2021 11:36121,223606,117,018545,503,43302,277,376
5Oct 10, 2021 11:36121,312616,899,175545,905,59102,285,568
6Oct 10, 2021 11:36121,818610,288,289548,180,22002,285,568
7Oct 10, 2021 11:36130,934773,557,986526,649,00062,552,00029,696,000
8Oct 10, 2021 11:36131,081771,728,609532,912,00056,952,00029,634,560
9Oct 10, 2021 11:36131,155778,706,957524,294,00065,905,00029,626,368
10Oct 10, 2021 11:36131,233770,661,602523,259,00067,290,00029,736,960
11Oct 10, 2021 11:36131,370773,951,800524,925,00066,242,00029,663,232
12Oct 10, 2021 11:36131,422772,999,388524,467,00066,932,00029,728,768
13Oct 10, 2021 11:36131,721772,809,283524,889,00067,856,00029,687,808
14Oct 10, 2021 11:36131,854775,664,125536,788,00056,556,00029,499,392
15Oct 10, 2021 11:36132,004776,821,320537,444,00056,573,00029,601,792