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 4, 2024 09:56Joad NacerJoad NacerScore: 25,987Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 09:5619,961151,618,61889,823,24102,269,184
2May 4, 2024 09:5619,972145,945,13689,875,34902,277,376
3May 4, 2024 09:5620,038152,308,17590,169,45902,301,952
4May 4, 2024 09:5625,853308,850,44151,823,00064,514,00029,659,136
5May 4, 2024 09:5625,869303,850,96449,174,00067,238,00029,560,832
6May 4, 2024 09:5625,975314,983,95047,904,00068,982,00029,540,352
7May 4, 2024 09:5625,987307,021,85450,709,00066,232,00029,642,752
8May 4, 2024 09:5626,007308,375,21148,598,00068,434,00029,540,352
9May 4, 2024 09:5626,012303,012,63550,757,00066,295,00029,675,520
10May 4, 2024 09:5626,064307,444,86552,833,00064,456,00029,675,520
11May 4, 2024 09:5626,163306,922,02045,785,00071,947,00029,548,544
12May 4, 2024 09:5626,317307,413,28249,177,00069,249,00029,671,424