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 8, 2021 12:23Ilya AniskovetsIlya AniskovetsScore: 14,359Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2021 12:236,891102,254,38431,009,01102,265,088
2Nov 8, 2021 12:236,95892,620,76431,309,58302,273,280
3Nov 8, 2021 12:236,994103,470,46431,474,39302,265,088
4Nov 8, 2021 12:2314,303253,250,97931,654,00032,710,00029,618,176
5Nov 8, 2021 12:2314,309250,148,64729,639,00034,750,00029,614,080
6Nov 8, 2021 12:2314,347255,119,53327,280,00037,283,00029,536,256
7Nov 8, 2021 12:2314,359256,539,20128,932,00035,683,00029,483,008
8Nov 8, 2021 12:2314,403256,358,69932,406,00032,406,00029,650,944
9Nov 8, 2021 12:2314,470253,179,37434,884,00030,233,00029,614,080
10Nov 8, 2021 12:2314,509255,361,95933,199,00032,093,00029,614,080
11Nov 8, 2021 12:2314,700258,953,20932,515,00033,636,00029,679,616
12Nov 8, 2021 12:2314,824262,148,26530,864,00035,842,00029,650,944