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:56Andrey TsvetkovAndrey TsvetkovScore: 97,576Success
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:5635,743226,478,940160,845,21702,203,648
2Oct 10, 2021 11:5635,778228,077,979161,003,11002,191,360
3Oct 10, 2021 11:5636,188244,869,303162,845,09802,199,552
4Oct 10, 2021 11:5687,995456,047,344395,975,75902,228,224
5Oct 10, 2021 11:5688,388455,274,426397,745,78702,220,032
6Oct 10, 2021 11:5688,600463,135,313398,698,38502,220,032
7Oct 10, 2021 11:5697,526621,824,488383,504,00055,361,00029,757,440
8Oct 10, 2021 11:5697,576619,797,516379,038,00060,055,00029,528,064
9Oct 10, 2021 11:5697,712619,988,398385,807,00053,899,00029,528,064
10Oct 10, 2021 11:5697,888620,496,193388,844,00051,651,00029,736,960
11Oct 10, 2021 11:5697,905622,813,443376,620,00063,954,00029,687,808
12Oct 10, 2021 11:5697,943620,372,474388,562,00052,181,00029,769,728
13Oct 10, 2021 11:5697,958626,733,662393,940,00046,873,00029,577,216
14Oct 10, 2021 11:5698,064627,039,024378,386,00062,900,00029,569,024
15Oct 10, 2021 11:5698,289621,488,353374,470,00067,832,00029,626,368