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 12:48Joad NacerJoad NacerScore: 26,280Success
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 12:4819,414144,883,28487,363,90102,293,760
2May 4, 2024 12:4819,460150,094,92887,572,00002,285,568
3May 4, 2024 12:4819,477161,678,83187,646,90702,285,568
4May 4, 2024 12:4826,190311,720,93354,642,00063,214,00029,663,232
5May 4, 2024 12:4826,261305,197,35749,808,00068,365,00029,675,520
6May 4, 2024 12:4826,278321,510,32254,244,00064,008,00029,679,616
7May 4, 2024 12:4826,280314,765,94654,830,00063,431,00029,560,832
8May 4, 2024 12:4826,444319,897,99450,156,00068,842,00029,716,480
9May 4, 2024 12:4826,512306,918,18854,326,00064,978,00029,671,424
10May 4, 2024 12:4826,528309,764,53753,979,00065,398,00029,716,480
11May 4, 2024 12:4826,615313,449,95750,748,00069,018,00029,573,120
12May 4, 2024 12:4826,977324,648,63357,861,00063,534,00029,732,864