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 listJun 12, 2023 21:05Victor MuñozVictor MuñozScore: 10,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 21:103,563104,622,83616,035,20802,256,896
2Jun 12, 2023 21:053,57374,324,79316,077,44502,260,992
3Jun 12, 2023 21:103,57874,346,05616,098,89702,256,896
4Jun 12, 2023 21:103,57986,197,76916,106,07602,244,608
5Jun 12, 2023 21:053,584110,511,29316,128,97402,248,704
6Jun 12, 2023 21:053,59588,625,60716,178,54502,244,608
7Jun 12, 2023 21:1010,846241,118,13415,577,00033,231,00029,675,520
8Jun 12, 2023 21:0510,852243,950,00218,171,00030,664,00029,544,448
9Jun 12, 2023 21:1010,880233,793,70518,651,00030,308,00029,503,488
10Jun 12, 2023 21:1010,894239,445,27617,101,00031,923,00029,659,136
11Jun 12, 2023 21:0510,895237,399,45116,009,00033,020,00029,577,216
12Jun 12, 2023 21:1010,903244,190,54214,153,00034,911,00029,511,680
13Jun 12, 2023 21:1010,908237,399,96415,339,00033,747,00029,675,520
14Jun 12, 2023 21:1010,909230,919,39414,160,00034,929,00029,655,040
15Jun 12, 2023 21:1010,914228,469,47714,444,00034,667,00029,544,448
16Jun 12, 2023 21:1010,918238,854,41417,546,00031,584,00029,573,120
17Jun 12, 2023 21:0510,928240,615,10915,694,00033,480,00029,708,288
18Jun 12, 2023 21:0510,955238,160,26616,782,00032,515,00029,609,984
19Jun 12, 2023 21:0510,960243,690,55416,790,00032,531,00029,577,216
20Jun 12, 2023 21:0510,987242,347,12613,733,00035,707,00029,704,192
21Jun 12, 2023 21:0511,002244,327,29317,271,00032,239,00029,708,288
22Jun 12, 2023 21:0511,012241,366,88515,857,00033,696,00029,577,216
23Jun 12, 2023 21:1011,024238,471,44722,047,00027,559,00029,708,288
24Jun 12, 2023 21:0511,102241,617,85616,291,00033,668,00029,708,288