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 18, 2023 16:24gchebanovgchebanovScore: 16,058Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 16:248,946107,783,74940,256,96602,260,992
2Jul 18, 2023 16:248,949107,253,13340,272,70802,265,088
3Jul 18, 2023 16:248,969104,650,81740,359,54002,252,800
4Jul 18, 2023 16:2415,936255,390,54238,380,00033,330,00029,626,368
5Jul 18, 2023 16:2415,971255,892,36540,761,00031,107,00029,507,584
6Jul 18, 2023 16:2416,000257,858,22440,235,00031,764,00029,630,464
7Jul 18, 2023 16:2416,058263,743,33642,701,00029,562,00029,626,368
8Jul 18, 2023 16:2416,062258,978,69838,205,00034,075,00029,491,200
9Jul 18, 2023 16:2416,083261,754,01235,704,00036,669,00029,593,600
10Jul 18, 2023 16:2416,088257,029,57738,209,00034,187,00029,552,640
11Jul 18, 2023 16:2416,235264,251,59537,015,00036,041,00029,548,544
12Jul 18, 2023 16:2416,558266,655,27445,949,00028,563,00029,700,096