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 15, 2021 07:22Ilya AniskovetsIlya AniskovetsScore: 15,034Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 07:227,576120,440,63234,093,40302,252,800
2Oct 15, 2021 07:227,62184,945,38834,295,78802,244,608
3Oct 15, 2021 07:227,712112,460,29434,702,32902,252,800
4Oct 15, 2021 07:2214,700254,596,66229,814,00036,336,00029,601,792
5Oct 15, 2021 07:2214,825256,827,72934,944,00031,767,00029,634,560
6Oct 15, 2021 07:2214,825251,242,33437,313,00029,398,00029,667,328
7Oct 15, 2021 07:2215,034254,034,91933,827,00033,827,00029,528,064
8Oct 15, 2021 07:2215,046253,349,00631,033,00036,676,00029,532,160
9Oct 15, 2021 07:2215,080260,190,09834,468,00033,390,00029,523,968
10Oct 15, 2021 07:2215,086261,485,34432,425,00035,464,00029,728,768
11Oct 15, 2021 07:2215,132259,418,35537,453,00030,643,00029,634,560
12Oct 15, 2021 07:2215,208259,148,06536,500,00031,937,00029,655,040