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 9, 2024 22:33Joad NacerJoad NacerScore: 13,404Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 22:335,61080,327,46325,244,96202,273,280
2May 9, 2024 22:335,61483,694,87525,263,99702,281,472
3May 9, 2024 22:335,67091,282,36525,516,47802,285,568
4May 9, 2024 22:3313,198252,863,12425,600,00033,792,00029,523,968
5May 9, 2024 22:3313,214248,781,67422,524,00036,939,00029,724,672
6May 9, 2024 22:3313,357246,118,97326,363,00033,745,00029,593,600
7May 9, 2024 22:3313,404251,918,07525,710,00034,610,00029,544,448
8May 9, 2024 22:3313,450253,177,05526,089,00034,438,00029,630,464
9May 9, 2024 22:3313,474247,656,11228,151,00032,482,00029,753,344
10May 9, 2024 22:3313,478250,985,28128,078,00032,571,00029,728,768
11May 9, 2024 22:3313,480245,273,69824,460,00036,201,00029,630,464
12May 9, 2024 22:3313,592253,121,04825,068,00036,098,00029,556,736