CodeChef Contest LIVE 180 β Get All Solutions for Free! π₯π
π CodeChef Starters 180 β Compete, Solve & Get All Solutions! π₯
Are you ready for another exciting CodeChef-rated contest? Starters 180 is here to test your coding skills and problem-solving abilities! Whether you're a beginner or an intermediate coder (rated up to 5 stars), this is your chance to compete, improve, and rank up.
π Contest Details:
π Platform: CodeChef
π Contest Name: Starters 180
π
Date: 2nd April 2025
β³ Time: 08:00 PM β 10:00 PM IST
β Duration: 2 Hours
π Rated for: Up to 5-star coders
π¨ Note: The Code of Conduct has been updatedβmake sure to follow the latest rules!
π₯ Get All Contest Solutions!
Want access to all solutions from this contest? Just follow these simple steps:
β
Step 1: Subscribe to our YouTube channel
πΈ Step 2: Take a screenshot of your subscription
π¬ Step 3: Send the screenshot along with your Telegram name (as it appears in Telegram)
π Step 4: Get admin access to our Official Telegram Channel and receive all the solutions!
π’ Join now and never miss any updates!
π https://t.me/+0dnF7vnXJ8lkOGFl
π‘ All solutions will be uploaded, so make sure to subscribe and join our Telegram channel!
π Donβt miss this opportunity to learn, compete, and grow as a coder! Letβs crack Starters 180 together! π₯π»
If we've helped you, please support us with a donation. β€οΈπ
Q1 Solution (Python)
aay, rath = map(int, input().split())
if rath > aay:
print("YES")
else:
print("NO")
Q2 Maximum Ones !! Solution(python)
t = int(input())
while t:
t -= 1
aay, rath = map(int, input().split())
s = list(input())
i = aay - 2
while i >= 0 and rath > 0:
if s[i] == '0' and s[i + 1] == '1':
s[i] = '1'
rath -= 1
i -= 1
print(s.count('1'))
Q3 Shall we play a game Solution
Q4 Solution
import sys
def process_test_case(n, a):
if n == 1:
return a[0]
k = (n - 1) // 2
m = max(a)
has_max_in_even_index = any(a[i] == m for i in range(0, n, 2))
bonus = k if has_max_in_even_index else max(0, k - 1)
return m + bonus
def main():
t = int(sys.stdin.readline().strip())
res = []
for _ in range(t):
n = int(sys.stdin.readline().strip())
a = list(map(int, sys.stdin.readline().split()))
res.append(process_test_case(n, a))
print("\n".join(map(str, res)))
if __name__ == "__main__":
main()
Q5 Solution
Q6 Solution
correct solutions are hereπ
ReplyDeleteπ
Deleteplease upload hey easy answer
ReplyDelete