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 listJul 3, 2023 07:34Jörn HorstmannJörn HorstmannScore: 29,338Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 07:3422,020160,080,76099,089,87802,260,992
2Jul 3, 2023 07:3422,034175,826,12199,150,78702,215,936
3Jul 3, 2023 07:3422,052171,729,57399,231,97002,220,032
4Jul 3, 2023 07:3429,229320,255,01595,482,00036,049,00029,655,040
5Jul 3, 2023 07:3429,279319,802,206101,904,00029,850,00029,642,752
6Jul 3, 2023 07:3429,313316,498,98393,394,00038,513,00029,696,000
7Jul 3, 2023 07:3429,338327,918,010103,732,00028,290,00029,667,328
8Jul 3, 2023 07:3429,355321,620,40495,624,00036,475,00029,601,792
9Jul 3, 2023 07:3429,373319,104,717100,658,00031,519,00029,696,000
10Jul 3, 2023 07:3429,411320,645,919100,020,00032,330,00029,696,000
11Jul 3, 2023 07:3429,600325,358,089103,023,00030,178,00029,696,000
12Jul 3, 2023 07:3429,630321,456,97399,248,00034,085,00029,564,928