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 listMay 7, 2023 08:45Bernard TeoBernard TeoScore: 14,142Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 08:455,43975,490,61924,474,62202,269,184
2May 7, 2023 08:455,482112,529,44124,666,93102,285,568
3May 7, 2023 08:455,49287,955,72724,715,39202,269,184
4May 7, 2023 08:4513,912253,663,45126,360,00036,246,00029,569,024
5May 7, 2023 08:4514,027249,705,17325,063,00038,059,00029,548,544
6May 7, 2023 08:4514,102252,150,10730,264,00033,193,00029,552,640
7May 7, 2023 08:4514,142259,787,24127,546,00036,095,00029,564,928
8May 7, 2023 08:4514,187257,161,82129,120,00034,720,00029,466,624
9May 7, 2023 08:4514,644287,719,63332,350,00033,548,00029,732,864
10May 7, 2023 08:4514,686267,992,53727,776,00038,312,00029,556,736
11May 7, 2023 08:4514,740267,220,85033,164,00033,164,00029,667,328
12May 7, 2023 08:4514,771271,041,19526,802,00039,667,00029,728,768