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 11, 2021 11:13tirochkintirochkinScore: 40,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 11:1333,558203,891,316151,011,74702,224,128
2Oct 11, 2021 11:1333,560221,589,909151,017,82802,224,128
3Oct 11, 2021 11:1333,591223,548,022151,158,78002,215,936
4Oct 11, 2021 11:1340,346371,505,122129,684,00051,873,00029,556,736
5Oct 11, 2021 11:1340,502365,484,805131,691,00050,569,00029,630,464
6Oct 11, 2021 11:1340,507365,984,169128,309,00053,971,00029,630,464
7Oct 11, 2021 11:1340,556358,658,782125,229,00057,275,00029,630,464
8Oct 11, 2021 11:1340,612382,377,578138,605,00044,148,00029,601,792
9Oct 11, 2021 11:1340,671362,723,893123,030,00059,989,00029,630,464
10Oct 11, 2021 11:1340,675361,802,314127,456,00055,582,00029,630,464
11Oct 11, 2021 11:1340,736372,737,882135,629,00047,682,00029,667,328
12Oct 11, 2021 11:1340,760366,162,823140,385,00043,037,00029,499,392