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 23:20Vitaliy F.Vitaliy F.Score: 47,618Success
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 23:2038,199233,208,534171,894,67802,244,608
2Oct 11, 2021 23:2038,207240,752,749171,929,68202,240,512
3Oct 11, 2021 23:2038,242232,606,323172,090,61002,248,704
4Oct 11, 2021 23:2047,398415,651,702169,437,00043,854,00029,577,216
5Oct 11, 2021 23:2047,423414,179,556178,687,00034,716,00029,585,408
6Oct 11, 2021 23:2047,509416,457,754177,291,00036,501,00029,638,656
7Oct 11, 2021 23:2047,618416,880,216171,015,00043,268,00029,573,120
8Oct 11, 2021 23:2047,623412,903,727185,659,00028,644,00029,581,312
9Oct 11, 2021 23:2047,626417,449,251174,072,00040,247,00029,569,024
10Oct 11, 2021 23:2047,762416,622,532165,715,00049,212,00029,577,216
11Oct 11, 2021 23:2047,813415,920,393183,134,00032,023,00029,573,120
12Oct 11, 2021 23:2047,884417,651,035173,771,00041,705,00029,609,984