Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
TPK algorithm: Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 08:28, 11 January 2020
edit
Ricvelozo
(
talk
|
contribs
)
488
edits
→
C implementation
← Previous edit
Revision as of 20:59, 13 January 2020
edit
undo
Ricvelozo
(
talk
|
contribs
)
488
edits
→
Python implementation
Next edit →
Line 76:
a = [float(input()) for _ in range(11)]
for
i,
t in reversed
(list(enumerate
(a
))
):
▼
i = 10
▲
for t in reversed(a):
y = f(t)
if y > 400:
Line 83 ⟶ 82:
else:
print(i, y)
i -= 1
</syntaxhighlight>