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 14:44Andrey TsvetkovAndrey TsvetkovScore: 78,223Success
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 14:4428,016192,831,444126,069,98802,207,744
2Oct 10, 2021 14:4428,034198,614,684126,150,89502,203,648
3Oct 10, 2021 14:4428,060209,753,169126,271,00402,211,840
4Oct 10, 2021 14:4468,765372,732,009309,443,84302,252,800
5Oct 10, 2021 14:4468,975368,153,641310,386,18802,244,608
6Oct 10, 2021 14:4469,013370,130,207310,556,97002,252,800
7Oct 10, 2021 14:4478,201531,772,599291,922,00059,984,00029,745,152
8Oct 10, 2021 14:4478,223536,270,655297,224,00054,778,00029,560,832
9Oct 10, 2021 14:4478,307533,091,315288,952,00063,428,00029,548,544
10Oct 10, 2021 14:4478,406536,682,747290,859,00061,969,00029,556,736
11Oct 10, 2021 14:4478,413532,232,916294,218,00058,641,00029,663,232
12Oct 10, 2021 14:4478,455534,122,783293,379,00059,670,00029,745,152
13Oct 10, 2021 14:4478,734537,521,528297,380,00056,924,00029,519,872
14Oct 10, 2021 14:4478,792542,611,969298,525,00056,037,00029,765,632
15Oct 10, 2021 14:4478,805534,237,321299,681,00054,941,00029,573,120