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 listAug 11, 2023 02:18PavelPavelScore: 109,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 02:18102,894526,333,919463,024,15802,195,456
2Aug 11, 2023 02:18102,982528,827,970463,420,93102,195,456
3Aug 11, 2023 02:18103,076521,654,345463,840,81702,207,744
4Aug 11, 2023 02:18109,726679,467,923440,468,00053,298,00029,540,352
5Aug 11, 2023 02:18109,727676,564,922453,682,00040,088,00029,523,968
6Aug 11, 2023 02:18109,785676,479,233450,592,00043,442,00029,700,096
7Aug 11, 2023 02:18109,816680,450,243436,385,00057,786,00029,536,256
8Aug 11, 2023 02:18109,853684,986,528443,233,00051,104,00029,667,328
9Aug 11, 2023 02:18109,930682,836,320437,374,00057,311,00029,724,672
10Aug 11, 2023 02:18110,029678,687,727438,773,00056,356,00029,700,096
11Aug 11, 2023 02:18110,051680,758,940436,966,00058,262,00029,732,864
12Aug 11, 2023 02:18110,224683,633,833440,788,00055,221,00029,564,928