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 listNov 9, 2021 12:25Ilya AniskovetsIlya AniskovetsScore: 19,851Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 12:2512,216144,703,61754,973,29702,252,800
2Nov 9, 2021 12:2512,221118,811,40654,994,24002,252,800
3Nov 9, 2021 12:2512,517121,041,54456,325,33602,244,608
4Nov 9, 2021 12:2519,641275,532,76657,504,00030,882,00029,577,216
5Nov 9, 2021 12:2519,829277,534,17252,374,00036,856,00029,675,520
6Nov 9, 2021 12:2519,836289,367,80557,456,00031,806,00029,712,384
7Nov 9, 2021 12:2519,851279,942,16355,582,00033,746,00029,659,136
8Nov 9, 2021 12:2519,906279,966,04354,524,00035,051,00029,642,752
9Nov 9, 2021 12:2519,938292,020,38754,830,00034,891,00029,609,984
10Nov 9, 2021 12:2519,965272,229,65658,195,00031,649,00029,675,520
11Nov 9, 2021 12:2520,227288,332,24162,509,00028,513,00029,577,216
12Nov 9, 2021 12:2520,272286,152,53156,519,00034,704,00029,708,288