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:19Vitaliy F.Vitaliy F.Score: 44,138Success
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:1934,624234,577,822155,809,66002,244,608
2Oct 11, 2021 23:1934,634211,620,253155,852,24202,240,512
3Oct 11, 2021 23:1934,646216,679,289155,907,54102,236,416
4Oct 11, 2021 23:1943,754398,572,725163,571,00033,320,00029,573,120
5Oct 11, 2021 23:1944,042411,399,622171,405,00026,782,00029,581,312
6Oct 11, 2021 23:1944,061404,868,825168,082,00030,194,00029,609,984
7Oct 11, 2021 23:1944,138396,319,356161,763,00036,857,00029,564,928
8Oct 11, 2021 23:1944,160407,003,450171,484,00027,235,00029,585,408
9Oct 11, 2021 23:1944,172396,752,217161,006,00037,766,00029,605,888
10Oct 11, 2021 23:1944,173399,386,614169,331,00029,448,00029,675,520
11Oct 11, 2021 23:1944,266403,620,350171,329,00027,866,00029,736,960
12Oct 11, 2021 23:1944,293401,348,851160,091,00039,227,00029,577,216