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 6, 2023 18:11Bernard TeoBernard TeoScore: 15,072Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2023 18:116,41089,558,58928,844,23002,273,280
2May 6, 2023 18:116,42888,425,97828,927,17502,277,376
3May 6, 2023 18:116,430104,750,75628,936,67102,281,472
4May 6, 2023 18:1114,877254,452,47029,416,00037,531,00029,700,096
5May 6, 2023 18:1115,002254,857,10929,881,00037,628,00029,667,328
6May 6, 2023 18:1115,053258,263,61026,909,00040,828,00029,564,928
7May 6, 2023 18:1115,072256,584,39630,145,00037,681,00029,577,216
8May 6, 2023 18:1115,207262,200,84530,516,00037,914,00029,601,792
9May 6, 2023 18:1115,362275,064,96036,264,00032,865,00029,761,536
10May 6, 2023 18:1115,525269,540,25424,883,00044,981,00029,601,792
11May 6, 2023 18:1115,598273,477,83036,227,00033,962,00029,601,792
12May 6, 2023 18:1115,625269,384,80242,188,00028,125,00029,597,696