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 listDec 12, 2024 17:58Yuriy LyfenkoYuriy LyfenkoScore: 2,991Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 17:522,97725,862,82612,367,0001,030,0002,265,088
2Dec 12, 2024 17:522,98534,456,77512,399,0001,033,0002,265,088
3Dec 12, 2024 17:522,98634,927,05013,435,00002,265,088
4Dec 12, 2024 17:522,98830,097,72312,413,0001,034,0002,392,064
5Dec 12, 2024 17:522,98935,517,86812,415,0001,034,0002,396,160
6Dec 12, 2024 17:582,98941,099,32912,415,0001,034,0002,265,088
7Dec 12, 2024 17:522,99130,045,79613,461,00002,527,232
8Dec 12, 2024 17:582,99335,929,54413,467,00002,265,088
9Dec 12, 2024 17:522,99428,805,16512,435,0001,036,0002,392,064
10Dec 12, 2024 17:522,99530,625,52412,441,0001,036,0002,396,160
11Dec 12, 2024 17:582,99933,005,15612,459,0001,038,0002,265,088
12Dec 12, 2024 17:523,00034,259,60413,502,00002,265,088