COGNIZANT EXAM HELP GROUP
3.55K subscribers
5.3K photos
21 videos
10 files
3.22K links
🚀 Placement Preparation Hub

🎓 From Preparation to Placement

OA Support • Coding • Aptitude • Technical • HR

🌟 Trusted by Hundreds of Students

🏆 372+ Placement Successes

📩 DM: @Mrtrueliving_ix

💙 Turning Aspirations into Offer Letters.
Download Telegram
All placement help available


° edgeverve

° Amazon SDE

° IBM

° Amazon HackON

° Mahindra Rise

° Visa

Any On // off campus placement

DM
@Mrtrueliving_ix for test clearance
Mahindra Rise || Amazon HackON Help available

DM @Mrtrueliving_ix

Those who need 💯 test Clearance ❤️
Amazon Hackthon Codes available

Dm @Mrtrueliving_ix
def gcd(a, b):
while b:
a, b = b, a % b
return a

def min_weight_range(N, A, B, C):
G = gcd(A, B)
min_weight = min(C)
max_weight = max(C)
if min_weight == max_weight:
return 0
residues = [c % G for c in C]
residues.sort()
max_gap = 0
for i in range(1, N):
max_gap = max(max_gap, residues[i] - residues[i - 1])
max_gap = max(max_gap, G - (residues[N - 1] - residues[0]))
return G - max_gap

N, A, B = map(int, input().split())
C = list(map(int, input().split()))
print(min_weight_range(N, A, B, C))
def parse(c):
if c == "X":
return None
if not c:
return []
r = []
for i in c.split(";"):
if i:
_, v = i.split(":")
r.append(int(v))
return r

def quest(m, n, c, g):
p = [[parse(c) for c in r] for r in g]
d = [[[-float('inf')] * (c + 1) for _ in range(n)] for _ in range(m)]
s = p[0][0]
if s is None:
return 0
for k in range(min(len(s), c + 1)):
d[0][0][k] = sum(s[:k])
for i in range(m):
for j in range(n):
if p[i][j] is None:
continue
for k in range(c + 1):
if d[i][j][k] == -float('inf'):
continue
if j + 1 < n and p[i][j + 1] is not None:
for t in range(min(len(p[i][j + 1]), c - k + 1)):
v = sum(p[i][j + 1][:t]) if t > 0 else 0
d[i][j + 1][k + t] = max(d[i][j + 1][k + t], d[i][j][k] + v)
if i + 1 < m and p[i + 1][j] is not None:
for t in range(min(len(p[i + 1][j]), c - k + 1)):
v = sum(p[i + 1][j][:t]) if t > 0 else 0
d[i + 1][j][k + t] = max(d[i + 1][j][k + t], d[i][j][k] + v)
x = max(d[m - 1][n - 1][k] for k in range(c + 1))
return x if x != -float('inf') else 0

m, n, c = map(int, input().split())
g = [input().split() for _ in range(m)]
print(quest(m, n, c, g))
Amazon Hackon help done

DM
@Mrtrueliving_ix for test clearance 💯
Cognizant 6 pm communication Help available


DM @Mrtrueliving_ix for 💯 test Clearance ❤️
Cisco help available

DM @Mrtrueliving_ix for test clearance

Book your slot now 👍
Mahindra Rise Help done

7-9 pm || test accomplished ❤️

DM @Mrtrueliving_ix for test clearance

#Mahindra #Rise #Offcampus #Java

All placement help available
All placement help available ❤️

>> PWC

>> Cisco

>> Cognizant communication & Aptitude

>> Mahindra Rise

>> IBM

>> Amazon SDE

>> Visa

>> Edgeverve


On // off campus placement help available

Those who need 💯 test Clearance

DM for us

@Mrtrueliving_ix @Mrtrueliving_ix
Successfully placed in Cognizant 🎉🔸

Welcome to the corporate world! 🌎💻

Prev

https://t.me/code_alphix/6542

All placement help available

DM @Mrtrueliving_ix🎉

#Cognizant #Placed #HiringVision💯

Heartly congratulations 🎉🎉


All Exams Help available

#Cognizant #HiringVision
3👌1🫡1
Cisco slots are available

DM
@Mrtrueliving_ix for test clearance 💯
Nvidia help available

DM @Mrtrueliving_ix
Cisco Codes are available

DM
@Mrtrueliving_ix for test clearance 💯

Plagfree coding ❤️
Cisco code available

DM @Mrtrueliving_ix