config.footer.left: " "
config.style.page.link.color: "black"
config.style.page.link.lineColor: "gray-4"
config.body.transition.duration: "400ms"
config.style.backdrop: "black"
config.style.page.color: "green-8"
config.style.page.link.color: "grape"
config.style.page.link.lineColor: "gray-6"
install: 0
--
[align center]
Welcome: u̸̩̻͇̇́̓s̵̥̀ě̶̩̯͉r̶̰̠̭͒
Password:
{text input for: 'PASS'}
[[Enter]]
[if PASS === "isthehousehaunted"]
[after 0.75 seconds]
..
[if PASS === "isthehousehaunted"]
[after 1.75 second]
...
[if PASS === "isthehousehaunted"]
[after 2.5 seconds]
Welcome.
<br>
<br>
[if PASS === "isthehousehaunted"]
[after 2.5 seconds]
-----
[if PASS === "isthehousehaunted"]
[after 3 seconds]
DESKTOP:
[if PASS === "isthehousehaunted"]
[after 3 seconds]
* [[Documents]]
[if PASS === "isthehousehaunted"]
[after 3 seconds]
* [[Downloads]]
[if PASS != "isthehousehaunted"]
[align center]
ERROR. Incorrect password.
<br>
[[Try again.->START]]
DOWNLOADS:
<br>
* [[lonedumpling.jpg]]
* [[IDE.exe]]
* [[networking.pdf]]
<br>
<br>
[[Return->Enter]]DOCUMENTS:
<br>
* [[CS103]]
* [[chatlog.py]]
* [[firstsem-examansw.pdf]]
* [[ugggghrandom.txt]]
<br>
<br>
[[Return->Enter]] CS103:
<br>
* [[groupwork.py]]
[[Return->Documents]] - check the mail
- networking assignment due on thursday
- red wants those gross drinks
- clean laptop keys
- rev amperes law (tf??)
- REMEMBER TO BRING THE ASSIGMNET
- 18may - 27may 5 weeks holiday
- check the mail
- 3x a day 10ml for five days ascoirl
- check the mail
- check the mail
- check the mail
<br>
<br>
[[Return->Documents]] [if install === 0]
Unable to open file. Install an IDE first.<br>
[[Return->Documents]]
[if install === 1]
FROM <span style="color:#b54d1c;">red:</span>
so they tried to kick zam out because he was putting up signs everywhere
FROM <span style="color:#b54d1c;">red:</span>
but he just kept clinging to the rafters so they had to swat him with a broom
TO <span style="color:#b54d1c;">red:</span>
where were his worse halves
FROM <span style="color:#b54d1c;">red:</span>
idiot one and idiot three?
TO <span style="color:#b54d1c;">red:</span>
yeah
FROM <span style="color:#b54d1c;">red:</span>
who do you think gave him the idea
TO <span style="color:#b54d1c;">red:</span>
fucking hell
---
FROM <span style="color:#FFFBD8;">1ef:</span>
Yea i'll text him, we can meet on saturday to work on [...]
FROM <span style="color:#b54d1c;">red:</span>
no thats an osha violation?? are you tryin to blow up my house
TO <span style="color:#b54d1c;">red:</span>
i have a permit to do wht i want
FROM <span style="color:#b54d1c;">red:</span>
if we die i'll haunt you forever. youll never know any fucking epace [...]
TO <span style="color:#b54d1c;">red:</span>
epace
TO <span style="color:#b54d1c;">red:</span>
red?
<br><span style="color:#b7b7b7;">[Error: You cannot send messages to this user]</span>
TO <span style="color:#b54d1c;">red:</span>
oh my god
<br><span style="color:#b7b7b7;">[Error: You cannot send messages to this user]</span>
<br>
{reveal link: '> Load more messages', passage: 'chatlogp2'}[if install === 0]
Run the installer?
<br>
* [[Yes]]
* [[No]]
[if install === 1]
Program is already installed.
<br>
<br>
[[Return->Downloads]]to whom it may concern:
im politely requesting an extension
{embed image: '/nbitm/img/bigeye.jpg'}
[continue]
---
[[Return->Downloads]]install: 1
--
[after 0.75 seconds]
..
[after 1.75 second]
...
[after 2.5 seconds]
......
[after 3.25 seconds]
Program has been successfully installed.
<br>
<br>
[[Return->Downloads]] Installation aborted.
<br>
<br>
[[Return->Downloads]][align center]
{embed image: '/nbitm/img/lops.png', alt: 'Image of a truth table and simplified logical equivalence.'}
[continue]
<br>
(The document continues for another 3 pages, filled in with scribbled equations. The last page contains only rough work.)
[[Return->Documents]][if install === 0]
Unable to open file. Install an IDE first.<br>
[[Return->Documents]]
[if install === 1]
def min_num_taxis(requests):<br>
'''<br>
kata/5e1b37bcc5772a0028c50c5d<br>
returns minimum number of taxis required for (requests)<br>
(pickup time, dropoff time)
#taxis available after one time unit<br>
'''<br>
taxinum = 0<br>
nextcar = []<br>
for i in requests:<br>
taxinum += 1<br>
nextcar.append(i[1])<br>
if min(nextcar) == i[0] -1 :<br>
taxinum -= 1<br>
nextcar.remove(min(nextcar))<br>
return taxinum<br>
<br>
def min_num_taxis2(requests):
'''
[(pickup time, dropoff time)]
-----------------------
contributed by user 1ef
-----------------------
'''
_requests = sorted(requests)
services = [_requests[0]]
for pickup, dropoff in _requests[1:]:
if pickup >= services[-1][1] + 1:
services.append((pickup, dropoff))
return len(services)
<br>
def min_num_taxis3(request): <br>
'''
Runs in O(n**2) time<br>
-----------------------<br>
contributed by user db8<br>
-----------------------<br>
'''<br>
count=0 #Number of taxis required<br>
current=[] #All considered timeslots<br>
for i in request:<br>
helper=True<br>
start=i[0]<br>
end=i[1]<br>
if count==0: #If taxis yet, need taxi<br>
count+=1<br>
current.append(i)<br>
else:<br>
for j in current: #Iterating through past timeslots<br>
if ( start<j[0] and end<j[0] ): #If timing is below any added ones, free<br>
helper=False<br>
break<br>
elif (start>j[1]): #If timing exceeds any, free<br>
helper=False<br>
break<br>
if (helper):<br>
count+=1 #Else need another taxi<br>
return count<br>
<br>
<br><br>
#test cases:
one_req = [(1,4)] # One request, one taxi.<br>
two_reqs = [(1,4), (5, 9)] # Two requests, one taxi.<br>
three_reqs = [(1,4), (2, 9), (3, 6)] # Three requests, three taxis.<br>
four_reqs = [(1,4), (2, 9), (3, 6), (5, 8)] # Four requests, three taxis.
<br>
<br>
print(min_num_taxis3(four_reqs))
<br>
<br>
#known issues:<br>
#min1 runs too slow (passes test cases)<br>
#min2 gives incorrect values (doesnt pass test cases)<br>
#min3 gives incorrect values (passes test cases, fast enough.)<br>
#optimise this shit<br>
#last updated: july 20XX
---
[[Return->Documents]] ---
TO <span style="color:#414c82;">db8:</span>
it works for all the test cases but putting in random values doesn't [...]
FROM <span style="color:#414c82;">db8:</span> [attached file 16-07.py]
TO <span style="color:#b54d1c;">red:</span>
UNBLOCK ME YOU COWARD
<br><span style="color:#b7b7b7;">[Error: You cannot send messages to this user]</span>
---
FROM <span style="color:#b54d1c;">red:</span>
im just saying i wouldnt let spoke near a toaster unsupervised
TO <span style="color:#b54d1c;">red:</span>
which one is spoke
FROM <span style="color:#b54d1c;">red:</span>
if there are bits he's committing em
---
TO <span style="color:#b54d1c;">red:</span>
ive killed 34 children red
TO <span style="color:#b54d1c;">red:</span>
in 1764. terrible times
TO <span style="color:#b54d1c;">red:</span>
for the children i mean. not for me i had a great time
FROM <span style="color:#b54d1c;">red:</span>
whyd you stop
TO <span style="color:#b54d1c;">red:</span>
got too drunk on power and fell asleep
---
FROM <span style="color:#426272;">8734@gmx:</span>
JOIN NOW AND WIN $100000[...]
<br>
{reveal link: '> Load more messages', passage: 'chatlogp3'}---
TO <span style="color:#b54d1c;">red:</span>
can you come over
TO <span style="color:#b54d1c;">red:</span>
im bored
TO <span style="color:#b54d1c;">red:</span>
red
TO <span style="color:#b54d1c;">red:</span>
red
TO <span style="color:#b54d1c;">red:</span>
red
TO <span style="color:#b54d1c;">red:</span>
i'll rewire your fire alarm next time im over
FROM <span style="color:#b54d1c;">red:</span>
dude dont you have uni applications youre supposed to be looking at
TO <span style="color:#b54d1c;">red:</span>
so?
TO <span style="color:#b54d1c;">red:</span>
fair enough
---
<span style="color:#b7b7b7;">[Calling: EMS]</span>
<br><span style="color:#b7b7b7;">[Unable to connect.]</span>
<br><span style="color:#b7b7b7;">[Calling: EMS]</span>
<br><span style="color:#b7b7b7;">[Unable to connect.]</span>
<br><span style="color:#b7b7b7;">[Calling: EMS]</span>
<br><span style="color:#b7b7b7;">[Unable to connect.]</span>
---
TO <span style="color:#FFFBD8;">1ef:</span>
fuckgn shit can you pick u p the phone
<br><span style="color:#b7b7b7;">[Error: Connection lost. Try again]</span>
TO <span style="color:#FFFBD8;">1ef:</span>
we nedd help kjke rlly badly
<br><span style="color:#b7b7b7;">[Error: Connection lost. Try again]</span>
TO <span style="color:#FFFBD8;">1ef:</span>
red needs help ems wont connecct and i dnt have any other [...]<br>
<span style="color:#b7b7b7;">[Error: Connection lost. Try again]</span>
TO <span style="color:#414c82;">db8:</span>
idk if thisll go thru but uf u see this im w my feriend at [...]
<br><span style="color:#b7b7b7;">[Error: Connection lost. Try again]</span>
<br>{reveal link: '> Load more messages', passage: 'chatlogp4'}---
FROM <span style="color:#414c82;">db8:</span>
have you finished up the group project yet
---
FROM <span style="color:#FFFBD8;">1ef:</span>
Just reminding u the project is due in a week btw
FROM <span style="color:#426272;">4287@gmx:</span>
Would You Like To Pay Less And Watch More Than 17,000 [...]
---
FROM <span style="color:#FFFBD8;">1ef:</span>
Ash if ur not gonna work on it just give it to one of us
---
FROM <span style="color:#FFFBD8;">1ef:</span>
For the love of god can you reply to ur messages, this isn't [...]
---
FROM <span style="color:#FFFBD8;">1ef:</span>
Hey i heard about what happened. im sorry [...]
<br><span style="color:#b7b7b7;">[Delete contact </span><span style="color:#FFFBD8;">1ef</span><span style="color:#b7b7b7;"> ?]</span>
<br><span style="color:#b7b7b7;">[Contact deleted.]</span>
---
TO <span style="color:#b54d1c;">red:</span>
went back to your apartment today
---
TO <span style="color:#b54d1c;">red:</span>
checked your mail for you. you havent got anything
---
TO <span style="color:#b54d1c;">red:</span>
coming over today
[DRAFT] TO <span style="color:#b54d1c;">red:</span>
do you want me to bring anything
---
[DRAFT] TO <span style="color:#b54d1c;">red:</span>
can you answer your phone ill actually say please if thats what itll take
---
TO <span style="color:#b54d1c;">red:</span>
are we still up for today?
<br>
<br>
End of file. [[Return->Documents]] [align center]
{embed image: '/nbitm/img/llonedumpling.jpg', alt: 'Image of a cat lying flat on the floor.'}
[continue]
[[Return->Downloads]]