Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
from collections import deque daily_portions = [int(x) for x in input().split(', ')] daily_stamina = deque(int(x) for x in input().split(', ')) conquered_peaks = [] dictionary = { 'Vihren': 80, 'Kutelo': 90, 'Banski Suhodol': 100, 'Polezhan': 60, 'Kamenitza': 70 } while daily_stamina: position = daily_portions.pop() stamina = daily_stamina.popleft() sum_position_stamina = position + stamina for peak, difficulty in dictionary.items(): if sum_position_stamina >= difficulty and peak not in conquered_peaks: conquered_peaks.append(peak) dictionary[peak] = difficulty print(conquered_peaks)
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)