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:24Ilya AniskovetsIlya AniskovetsScore: 14,847Success
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:247,58893,612,83534,145,35402,273,280
2Oct 15, 2021 07:247,624111,501,01434,308,37002,269,184
3Oct 15, 2021 07:247,667117,044,50634,501,44702,260,992
4Oct 15, 2021 07:2414,788261,907,20239,216,00027,332,00029,614,080
5Oct 15, 2021 07:2414,797257,634,29435,512,00031,073,00029,724,672
6Oct 15, 2021 07:2414,823255,066,09134,427,00032,275,00029,630,464
7Oct 15, 2021 07:2414,847258,357,67234,450,00032,362,00029,499,392
8Oct 15, 2021 07:2414,958263,272,52337,021,00030,290,00029,630,464
9Oct 15, 2021 07:2415,017255,432,29233,268,00034,308,00029,597,696
10Oct 15, 2021 07:2415,058254,989,88436,140,00031,622,00029,597,696
11Oct 15, 2021 07:2415,102261,304,81235,076,00032,884,00029,626,368
12Oct 15, 2021 07:2415,103259,229,86738,013,00029,949,00029,614,080