Strand Station (Norwegian: "Strand holdeplass" ) was a railway station situated at Strand in Bærum, Norway, on the Drammen Line.
 The station, located 8.78 km from Oslo West Station, was served by Oslo Commuter Rail trains of the Norwegian State Railways.
 Ramstad opened on 1 November 1931 with two simple side platforms. Ticket sales remained until 1964.
 The station was one of several closed on 3 July 1973 as part of a service upgrade to speed up local trains on the Drammen Line.
The Norwegian railway network consists of 2552 km of electrified railway lines, constituting 62% of the Norwegian National Rail Administration's 4114 km of line.
 The first three mainline systems to be electrified were private ore-hauling lines.
 The Thamshavn Line opened in 1909, and remained in revenue use until 1973, after which it was converted to a heritage railway.
 It is the world's oldest remaining alternating-current railway and the only narrow gauge railway in the country to have been electrified.
 It was followed by Norsk Transport's Rjukan and Tinnoset Lines two years later, and Sydvaranger's Kirkenes–Bjørnevatn Line in 1922.
 The Norwegian State Railways' (NSB) first electrification was parts of the Drammen Line in 1922 and the ore-hauling Ofoten Line in 1923, which connects to the Iron Ore Line in Sweden.
 The use of El 1 locomotives on the Drammen Line proved a large cost-saver over steam locomotives, and NSB started electrifying other lines around Oslo; from 1927 to 1930, the remainder of the Drammen Line, and the continuation along the Randsfjorden and Sørlandet Lines to Kongsvinger were converted, along with the first section of the Trunk Line.
 In 1935, the Hardanger Line became the first section of new NSB track to be electrified.
 From 1936 to 1940, NSB electrified the Østfold Line as well as more of the Sørland Line and the Bratsberg Line, connecting all electric lines west of Oslo.
Myra Station (Norwegian: "Myra holdeplass" ) was a railway station situated at Myra in the neighborhood of Stabekk in Bærum, Norway, on the Drammen Line.
 The station, located 7.30 km from Oslo West Station, was served by Oslo Commuter Rail trains of the Norwegian State Railways.
 Ramstad opened on 1 November 1931 with two simple side platforms.
 It was opened as Marstrander bro, but took the name Myra eighteen days later.
 Ticket sales remained until 1964.
 The station was one of several closed on 3 July 1973 as part of a service upgrade to speed up local trains on the Drammen Line.
Vakås Station (Norwegian: "Vakås holdeplass" ) is a railway station on the Drammen Line located at Vakås in Asker, Norway.
 Situated 21.23 km from Oslo Central Station, it consists of an island platform and serves the L1 line of the Oslo Commuter Rail operated by the Norwegian State Railways.
 The station served 155,000 passengers in 2012.
 The station was opened on 1 July 1957 as part of the doubling of the Drammen Line.
The Oslo Tunnel (Norwegian: "Oslotunnelen" ) is a 3632 m , double-track, railway tunnel which runs between Olav Kyrres plass and Oslo Central Station (Oslo S) in Oslo, Norway.
 The tunnel constitutes the eastern-most section of the Drammen Line and runs below the central business district of Oslo.
 It features the four-track Nationaltheatret Station, Norway's second-busiest railway station, where the Oslo Tunnels lies directly beneath the Common Tunnel of the Oslo Metro.
 At Frogner, the Elisenberg Station was built, but has never been used.
 The tunnel is the busiest section of railway line in Norway and serves all west-bound trains from Oslo, including many services of the Oslo Commuter Rail and the Airport Express Train.
Oslo West Station (Norwegian: "Oslo Vestbanestasjon" ) or Oslo V, is a former railway station located in Vika in Oslo, Norway.
 It was the terminus of the Drammen Line between 1872 and 1980, until the Oslo Tunnel opened.
 The station remained in use until 1989, when all traffic was moved to the new Oslo Central Station.
 Until its closure it was the main station for trains on the Sørland Line, the Drammen Line and the Vestfold Line.
 There was no passenger rail connection to Oslo Ø, the eastern station that served the eastern lines and trains to Bergen.
 The only connection was the Oslo Port Line that went partially through some of the most trafficked streets in Oslo.
The Spikkestad Line (Norwegian: "Spikkestadbanen" ) is a 14 kilometre long railway line between Asker and Spikkestad in Norway.
 It was originally part of the Drammen Line between Oslo and Drammen which was built in 1872.
 In 1973, Lieråsen Tunnel was built to shorten the Drammen Line, and much of the old line was closed down.
 The last train on the section between Spikkestad and Drammen ran 2 June 1973.
 However, the stretch between Asker and Spikkestad was kept as a branch line for local commuter traffic.
Oslo ( , , ] ] ] ) is the capital and the most populous city in Norway.
 It constitutes both a county and a municipality.
 Founded in the year 1040, and established as a "kaupstad" or trading place in 1048 by Harald Hardrada, the city was elevated to a bishopric in 1070 and a capital under Haakon V of Norway around 1300.
 Personal unions with Denmark from 1397 to 1523 and again from 1536 to 1814 and with Sweden from 1814 to 1905 reduced its influence.
 After being destroyed by a fire in 1624, during the reign of King Christian IV, the city was moved closer to Akershus Fortress and renamed Christiania in the king's honour.
 It was established as a municipality ("formannskapsdistrikt") on 1 January 1838.
 Following a spelling reform, it was known as Kristiania from 1877 until 1925, in which year its original Norwegian name of Oslo was restored.
The Vestfold Line (Norwegian: "Vestfoldbanen" ) is a 137.79 km railway line which runs between Drammen and Eidanger in Norway.
 The line connects to the Drammen Line at the northern terminus at Drammen Station and continues as the Bratsberg Line past Skien Station.
 The line is exclusively used for passenger trains, which are provided by the Norwegian State Railways, which connect northwards to Oslo and south-westwards to Grenland.
 The 13 km section from Eidanger to Skien is often colloquially included in the Vestfold Line.The standard gauge line is electrified at 15 kV 16 ⁄  Hz AC and has twelve remaining stations.
 The Vestfold Line runs through the coastal region of Vestfold and serves major towns including Holmestrand, Tønsberg, Sandefjord and Larvik, as well as Sandefjord Airport, Torp.
Ramstad Station (Norwegian: "Ramstad holdeplass" ) was a railway station situated at Ramstad in Bærum, Norway, on the Drammen Line.
 The station, located 10.40 km from Oslo West Station, was served by Oslo Commuter Rail trains of the Norwegian State Railways.
 Ramstad opened on 1 November 1931 with two simple side platforms. Ticket sales remained until 1964.
 The station was one of several closed on 3 July 1973 as part of a service upgrade to speed up local trains on the Drammen Line.

Question: What is the year of the event that occured first, the Drammen Line was built, or Oslo was founded?
Answer: 1040