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 22:15Victor MuñozVictor MuñozScore: 10,528Success
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 22:153,46088,546,74215,568,86802,248,704
2Jun 12, 2023 22:153,46273,119,90215,580,82402,248,704
3Jun 12, 2023 22:153,46291,413,55315,580,60002,248,704
4Jun 12, 2023 22:163,46484,117,20615,586,86602,248,704
5Jun 12, 2023 22:153,47199,091,27415,618,05402,260,992
6Jun 12, 2023 22:153,47187,757,68915,617,64102,252,800
7Jun 12, 2023 22:163,475107,356,86015,638,88502,248,704
8Jun 12, 2023 22:153,48485,690,33915,680,21302,244,608
9Jun 12, 2023 22:163,48989,708,19915,702,40502,244,608
10Jun 12, 2023 22:1610,421235,683,75214,966,00031,929,00029,708,288
11Jun 12, 2023 22:1510,426231,496,74510,891,00036,024,00029,544,448
12Jun 12, 2023 22:1510,455231,293,90913,013,00034,034,00029,667,328
13Jun 12, 2023 22:1610,465241,352,47014,237,00032,855,00029,511,680
14Jun 12, 2023 22:1510,528238,012,67213,687,00033,691,00029,708,288
15Jun 12, 2023 22:1610,535235,361,39913,545,00033,864,00029,659,136
16Jun 12, 2023 22:1610,562243,509,68016,204,00031,327,00029,708,288
17Jun 12, 2023 22:1610,574241,618,31913,447,00034,135,00029,675,520
18Jun 12, 2023 22:1610,614238,198,84812,672,00035,091,00029,683,712
19Jun 12, 2023 22:1510,615240,703,86214,441,00033,327,00029,659,136
20Jun 12, 2023 22:1510,617237,197,00313,935,00033,842,00029,708,288
21Jun 12, 2023 22:1610,644239,050,28714,152,00033,748,00029,544,448
22Jun 12, 2023 22:1510,661235,215,95218,937,00029,037,00029,511,680
23Jun 12, 2023 22:1610,670239,636,08614,516,00033,499,00029,675,520
24Jun 12, 2023 22:1510,706238,759,42216,059,00032,118,00029,708,288
25Jun 12, 2023 22:1610,786240,030,53317,053,00031,483,00029,659,136
26Jun 12, 2023 22:1510,790238,799,73013,872,00034,681,00029,675,520
27Jun 12, 2023 22:1510,822239,078,83814,821,00033,876,00029,655,040