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:57Joad NacerJoad NacerScore: 26,076Success
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:5719,866189,474,55789,397,35402,273,280
2May 4, 2024 09:5719,895162,333,60189,529,16902,187,264
3May 4, 2024 09:5719,923149,506,60689,653,59502,285,568
4May 4, 2024 09:5725,812305,383,62349,925,00066,227,00029,671,424
5May 4, 2024 09:5725,990301,673,58547,982,00068,974,00029,564,928
6May 4, 2024 09:5725,992310,200,06656,778,00060,185,00029,560,832
7May 4, 2024 09:5726,076307,904,45554,760,00062,583,00029,679,616
8May 4, 2024 09:5726,210315,889,10353,020,00064,923,00029,511,680
9May 4, 2024 09:5726,286316,237,71952,216,00066,069,00029,728,768
10May 4, 2024 09:5726,330314,081,12253,153,00065,334,00029,589,504
11May 4, 2024 09:5726,366312,620,77851,306,00067,339,00029,569,024
12May 4, 2024 09:5726,470309,127,71550,316,00068,800,00029,646,848