import sys
input = sys.stdin.readline
def solve(n, a):
e = []
for l, r, s in a:
e.append((l, s))
e.append((r + 1, -s))
e.sort()
c = 0
m = 0
for _, v in e:
c += v
m = max(m, c)
return m
if name == "main":
n = int(input())
a = []
for _ in range(n):
a.append(list(map(int, input().split())))
print(solve(n, a))
*Peak overalp*
https://t.me/+e_xiTuFruXJiYjQ1
https://whatsapp.com/channel/0029VahiS3p2v1IyoS891Y1g
input = sys.stdin.readline
def solve(n, a):
e = []
for l, r, s in a:
e.append((l, s))
e.append((r + 1, -s))
e.sort()
c = 0
m = 0
for _, v in e:
c += v
m = max(m, c)
return m
if name == "main":
n = int(input())
a = []
for _ in range(n):
a.append(list(map(int, input().split())))
print(solve(n, a))
*Peak overalp*
https://t.me/+e_xiTuFruXJiYjQ1
https://whatsapp.com/channel/0029VahiS3p2v1IyoS891Y1g
Telegram
COGNIZANT NURTURE Deloitte Nla || Virtusa || Mahindra Rise || ACCENTURE || AMAZON ALL EXAMS OA Help available
🚀 Placement Preparation Hub
💻 Online Assessments | Coding Tests | Interviews
🎯 Smart Strategy + Right Guidance = Real Results
🏆 Helping Students Secure Top Company Offers
📩 DM: @Mrtrueliving_ix
🚀 #367 Placement Mission ❤️
💻 Online Assessments | Coding Tests | Interviews
🎯 Smart Strategy + Right Guidance = Real Results
🏆 Helping Students Secure Top Company Offers
📩 DM: @Mrtrueliving_ix
🚀 #367 Placement Mission ❤️
🔥 Python3 Solution
def solve(N, C, D, cost):
cost.sort()
l = 0
a = 0
s = 0
for r in range(N):
s += cost[r]
while l <= r and (s > C or cost[r] - cost[l] > D):
s -= cost[l]
l += 1
a = max(a, r - l + 1)
return a
📌 FREE ANSWER TELEGRAM GROUP:
https://t.me/+e_xiTuFruXJiYjQ1
📢 WHATSAPP CHANNEL:
https://whatsapp.com/channel/0029VahiS3p2v1IyoS891Y1g
@Mrtrueliving_ix & Team
def solve(N, C, D, cost):
cost.sort()
l = 0
a = 0
s = 0
for r in range(N):
s += cost[r]
while l <= r and (s > C or cost[r] - cost[l] > D):
s -= cost[l]
l += 1
a = max(a, r - l + 1)
return a
📌 FREE ANSWER TELEGRAM GROUP:
https://t.me/+e_xiTuFruXJiYjQ1
📢 WHATSAPP CHANNEL:
https://whatsapp.com/channel/0029VahiS3p2v1IyoS891Y1g
@Mrtrueliving_ix & Team
Telegram
COGNIZANT NURTURE Deloitte Nla || Virtusa || Mahindra Rise || ACCENTURE || AMAZON ALL EXAMS OA Help available
🚀 Placement Preparation Hub
💻 Online Assessments | Coding Tests | Interviews
🎯 Smart Strategy + Right Guidance = Real Results
🏆 Helping Students Secure Top Company Offers
📩 DM: @Mrtrueliving_ix
🚀 #367 Placement Mission ❤️
💻 Online Assessments | Coding Tests | Interviews
🎯 Smart Strategy + Right Guidance = Real Results
🏆 Helping Students Secure Top Company Offers
📩 DM: @Mrtrueliving_ix
🚀 #367 Placement Mission ❤️
❤1
╔════════════════════════╗
🚀 INFOSYS 16TH — 10 AM SLOT 🚀
╚════════════════════════╝
✅ Assistance Successfully Completed
🔥 8/8 Slots Done Successfully
💯 Plag-Free Coding Provided
⚡ Smooth Execution & Support
━━━━━━━━━━━━━━━━━━━━━━
Need Help With Placements? 👨💻
📌 Test Clearance Guidance
📌 Plag-Free Coding Support
📌 Placement Assistance
📌 Interview Preparation Support
📩 DM NOW: @Mrtrueliving_ix
📩 DM NOW: @Mrtrueliving_ix
━━━━━━━━━━━━━━━━━━━━━━
🌟 Limited Slots Available
🎯 Serious Candidates Only
🚀 Your Placement Journey Starts Here!
— @Mrtrueliving_ix & Team
🚀 INFOSYS 16TH — 10 AM SLOT 🚀
╚════════════════════════╝
✅ Assistance Successfully Completed
🔥 8/8 Slots Done Successfully
💯 Plag-Free Coding Provided
⚡ Smooth Execution & Support
━━━━━━━━━━━━━━━━━━━━━━
Need Help With Placements? 👨💻
📌 Test Clearance Guidance
📌 Plag-Free Coding Support
📌 Placement Assistance
📌 Interview Preparation Support
📩 DM NOW: @Mrtrueliving_ix
📩 DM NOW: @Mrtrueliving_ix
━━━━━━━━━━━━━━━━━━━━━━
🌟 Limited Slots Available
🎯 Serious Candidates Only
🚀 Your Placement Journey Starts Here!
— @Mrtrueliving_ix & Team
🚨 Official Infosys Update | Assessment Rescheduled 🚨
Dear Professor,
Greetings!
This is to inform you that the Slot – 1 & Slot – 2 candidates of the Infosys Off Campus Virtual Assessment for the 2026 Batch has been rescheduled to next Sunday.
❌ There will be NO assessment conducted today.
📩 An official communication regarding this change will be shared with all candidates shortly.
Kindly inform your respective teams & concerned students.
⚠️ Students who have not received the mail yet — no need to panic. Please wait for the updated communication from Infosys.
Stay connected for latest updates & guidance 👇
📩 DM: @Mrtrueliving_ix
— @Mrtrueliving_ix & Team
❤3
🚨 Infosys 24th May Rescheduled Slots Available 🚨
Good news for candidates! ✅
Infosys SP / DSE 2026 rescheduled assessment slots for 24th May are now available.
📌 Limited slots open
📌 Assistance available for eligible candidates
📌 Fast confirmation process
Interested students can contact immediately 👇
📩 DM: @Mrtrueliving_ix
🚀 Complete support for assessment clearance & placement guidance
— @Mrtrueliving_ix & Team
Good news for candidates! ✅
Infosys SP / DSE 2026 rescheduled assessment slots for 24th May are now available.
📌 Limited slots open
📌 Assistance available for eligible candidates
📌 Fast confirmation process
Interested students can contact immediately 👇
📩 DM: @Mrtrueliving_ix
🚀 Complete support for assessment clearance & placement guidance
— @Mrtrueliving_ix & Team
╔═══════════════════╗
🚨 DELOITTE HIRING 🚨
╚═══════════════════╝
🎯 Interview Slots Are LIVE Now!
Looking for genuine placement support?
Deloitte interview assistance is available with complete guidance 💼✨
✅ Interview Slot Assistance
✅ Technical + HR Preparation
✅ Real-Time Support
✅ 💯 Placement Support Guarantee
⚡ Limited Slots Only — Fast Response Recommended
📩 DM NOW:
@Mrtrueliving_ix
@Mrtrueliving_ix.
9030793510
9030793510
━━━━━━━━━━━━━━━━━━
🔥 Recently NLA 💯 placement support
https://t.me/Code_alphix/10201?single
https://t.me/Code_alphix/10210
━━━━━━━━━━━━━━━━━━
📌 WHATSAPP CHANNEL:
https://whatsapp.com/channel/0029VahiS3p2v1IyoS891Y1g
📌 FREE ANSWER TELEGRAM GROUP:
https://t.me/+e_xiTuFruXJiYjQ1
🚀 Your placement journey starts here!
@Mrtrueliving_ix & Team
🚨 DELOITTE HIRING 🚨
╚═══════════════════╝
🎯 Interview Slots Are LIVE Now!
Looking for genuine placement support?
Deloitte interview assistance is available with complete guidance 💼✨
✅ Interview Slot Assistance
✅ Technical + HR Preparation
✅ Real-Time Support
✅ 💯 Placement Support Guarantee
⚡ Limited Slots Only — Fast Response Recommended
📩 DM NOW:
@Mrtrueliving_ix
@Mrtrueliving_ix.
9030793510
9030793510
━━━━━━━━━━━━━━━━━━
🔥 Recently NLA 💯 placement support
https://t.me/Code_alphix/10201?single
https://t.me/Code_alphix/10210
━━━━━━━━━━━━━━━━━━
📌 WHATSAPP CHANNEL:
https://whatsapp.com/channel/0029VahiS3p2v1IyoS891Y1g
📌 FREE ANSWER TELEGRAM GROUP:
https://t.me/+e_xiTuFruXJiYjQ1
🚀 Your placement journey starts here!
@Mrtrueliving_ix & Team
╔════════════════════════════╗
🔥🚀 𝗧𝗢𝗠𝗢𝗥𝗥𝗢𝗪 𝗣𝗟𝗔𝗖𝗘𝗠𝗘𝗡𝗧 𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗢𝗣𝗘𝗡 🚀🔥
╚════════════════════════════╝
🏫 𝗢𝗻-𝗖𝗮𝗺𝗽𝘂𝘀 | 🌍 𝗢𝗳𝗳-𝗖𝗮𝗺𝗽𝘂𝘀
💯 Assessment + Interview Assistance Available
━━━━━━━━━━━━━━━━━━━
📲 CONTACT NOW: @Mrtrueliving_ix
📲 CONTACT NOW: @Mrtrueliving_ix
━━━━━━━━━━━━━━━━━━━
🎯 𝗖𝗢𝗠𝗣𝗔𝗡𝗜𝗘𝗦 & 𝗣𝗟𝗔𝗧𝗙𝗢𝗥𝗠𝗦
⚡ Blinkit
🛒 Amazon (All Roles)
💻 HackerRank Assessments
🏢 Zensar
🎧 Concentrix
🖥️ IBM Online & Offline
🎙️ Sutherland
🏦 NatWest
⛽ Shell
🚀 More Companies Available Daily!
━━━━━━━━━━━━━━━━━━━
💼 𝗪𝗛𝗔𝗧 𝗬𝗢𝗨 𝗚𝗘𝗧
━━━━━━━━━━━━━━━━━━━
📚 Coding Assessment Support
🧠 Aptitude Round Guidance
🗣️ HR & Communication Round Help
💻 Technical Interview Assistance
📄 ATS Friendly Resume Support
✅ Full Placement Guidance
⚠️ 𝗟𝗮𝘀𝘁 𝗙𝗲𝘄 𝗦𝗹𝗼𝘁𝘀 𝗥𝗲𝗺𝗮𝗶𝗻𝗶𝗻𝗴!
━━━━━━━━━━━━━━━━━━━
📩 𝗕𝗢𝗢𝗞𝗜𝗡𝗚 𝗣𝗥𝗢𝗖𝗘𝗦𝗦
━━━━━━━━━━━━━━━━━━━
📤 Send Your:
🕒 Exam Time
📅 Date
📸 Mail Screenshot
📲 WhatsApp: @Mrtrueliving_ix
📲 WhatsApp: @Mrtrueliving_ix
✨ Apply through shared links to receive assessments directly ✅
@Mrtrueliving_ix & Team 🔥
🔥🚀 𝗧𝗢𝗠𝗢𝗥𝗥𝗢𝗪 𝗣𝗟𝗔𝗖𝗘𝗠𝗘𝗡𝗧 𝗦𝗨𝗣𝗣𝗢𝗥𝗧 𝗢𝗣𝗘𝗡 🚀🔥
╚════════════════════════════╝
🏫 𝗢𝗻-𝗖𝗮𝗺𝗽𝘂𝘀 | 🌍 𝗢𝗳𝗳-𝗖𝗮𝗺𝗽𝘂𝘀
💯 Assessment + Interview Assistance Available
━━━━━━━━━━━━━━━━━━━
📲 CONTACT NOW: @Mrtrueliving_ix
📲 CONTACT NOW: @Mrtrueliving_ix
━━━━━━━━━━━━━━━━━━━
🎯 𝗖𝗢𝗠𝗣𝗔𝗡𝗜𝗘𝗦 & 𝗣𝗟𝗔𝗧𝗙𝗢𝗥𝗠𝗦
⚡ Blinkit
🛒 Amazon (All Roles)
💻 HackerRank Assessments
🏢 Zensar
🎧 Concentrix
🖥️ IBM Online & Offline
🎙️ Sutherland
🏦 NatWest
⛽ Shell
🚀 More Companies Available Daily!
━━━━━━━━━━━━━━━━━━━
💼 𝗪𝗛𝗔𝗧 𝗬𝗢𝗨 𝗚𝗘𝗧
━━━━━━━━━━━━━━━━━━━
📚 Coding Assessment Support
🧠 Aptitude Round Guidance
🗣️ HR & Communication Round Help
💻 Technical Interview Assistance
📄 ATS Friendly Resume Support
✅ Full Placement Guidance
⚠️ 𝗟𝗮𝘀𝘁 𝗙𝗲𝘄 𝗦𝗹𝗼𝘁𝘀 𝗥𝗲𝗺𝗮𝗶𝗻𝗶𝗻𝗴!
━━━━━━━━━━━━━━━━━━━
📩 𝗕𝗢𝗢𝗞𝗜𝗡𝗚 𝗣𝗥𝗢𝗖𝗘𝗦𝗦
━━━━━━━━━━━━━━━━━━━
📤 Send Your:
🕒 Exam Time
📅 Date
📸 Mail Screenshot
📲 WhatsApp: @Mrtrueliving_ix
📲 WhatsApp: @Mrtrueliving_ix
✨ Apply through shared links to receive assessments directly ✅
@Mrtrueliving_ix & Team 🔥
╔═══════════════════╗
🚀 𝗖𝗢𝗚𝗡𝗜𝗭𝗔𝗡𝗧 𝗠𝗔𝗦𝗦 𝗛𝗜𝗥𝗜𝗡𝗚 🚀
╚═══════════════════╝
💻 Role ➤ Java FSE (Full Stack Engineer)
🏢 Company ➤ Cognizant
📍 Location ➤ PAN India
🎓 Eligible Batch ➤ 2027 Batch
💰 Package ➤ Up to ₹6.75 LPA
🔥 Hiring Type ➤ Mass Hiring
━━━━━━━━━━━━━━━━━━
🛠 Skills Required
✔ Core Java
✔ Spring Boot
✔ REST APIs
✔ SQL / Databases
✔ Frontend Technologies
━━━━━━━━━━━━━━━━━━
📌 Eligibility
✅ B.E / B.Tech / M.E / M.Tech
✅ CS / IT / Circuit Branches
✅ Good coding & communication skills
━━━━━━━━━━━━━━━━━━
📅 Last Date ➤ 18 May 2026
⚡ Apply ASAP — limited registrations
🔗 Apply Here:
https://chat.whatsapp.com/K5I2JqrGT500M3Nt0rM6As
━━━━━━━━━━━━━━━━━━
🌐 COMMUNITY LINKS
📢 WhatsApp Channel:
https://chat.whatsapp.com/K5I2JqrGT500M3Nt0rM6As
🚀 Batch Groups:
🎓 2027 Batch:
https://chat.whatsapp.com/ITQk5mtVLdw4uXRyWYKNsT
🎓 2026 Batch:
https://chat.whatsapp.com/ITQk5mtVLdw4uXRyWYKNsT
📣 Telegram:
https://t.me/Code_alphix
━━━━━━━━━━━━━━━━━━
✨ Share with friends & support each other ❤️
@Mrtrueliving_ix & Team
🚀 𝗖𝗢𝗚𝗡𝗜𝗭𝗔𝗡𝗧 𝗠𝗔𝗦𝗦 𝗛𝗜𝗥𝗜𝗡𝗚 🚀
╚═══════════════════╝
💻 Role ➤ Java FSE (Full Stack Engineer)
🏢 Company ➤ Cognizant
📍 Location ➤ PAN India
🎓 Eligible Batch ➤ 2027 Batch
💰 Package ➤ Up to ₹6.75 LPA
🔥 Hiring Type ➤ Mass Hiring
━━━━━━━━━━━━━━━━━━
🛠 Skills Required
✔ Core Java
✔ Spring Boot
✔ REST APIs
✔ SQL / Databases
✔ Frontend Technologies
━━━━━━━━━━━━━━━━━━
📌 Eligibility
✅ B.E / B.Tech / M.E / M.Tech
✅ CS / IT / Circuit Branches
✅ Good coding & communication skills
━━━━━━━━━━━━━━━━━━
📅 Last Date ➤ 18 May 2026
⚡ Apply ASAP — limited registrations
🔗 Apply Here:
https://chat.whatsapp.com/K5I2JqrGT500M3Nt0rM6As
━━━━━━━━━━━━━━━━━━
🌐 COMMUNITY LINKS
📢 WhatsApp Channel:
https://chat.whatsapp.com/K5I2JqrGT500M3Nt0rM6As
🚀 Batch Groups:
🎓 2027 Batch:
https://chat.whatsapp.com/ITQk5mtVLdw4uXRyWYKNsT
🎓 2026 Batch:
https://chat.whatsapp.com/ITQk5mtVLdw4uXRyWYKNsT
📣 Telegram:
https://t.me/Code_alphix
━━━━━━━━━━━━━━━━━━
✨ Share with friends & support each other ❤️
@Mrtrueliving_ix & Team
🔥1
COGNIZANT offline interview Help...
DM for any placement or interview
@Mrtrueliving_ix
@Mrtrueliving_ix
🔥 COGNIZANT Offline Interview Help Done ✅
💯 Accurate Answers
💯 Real-Time Interview Support
💯 Placement Guidance
Successfully helped candidates with:
✔ C#
✔ ASP.NET Core
✔ SQL
✔ ADO.NET
✔ OOPs
✔ HR Questions
🎯 From Technical Round → Placement Support
📩 DM: @Mrtrueliving_ix
🚀 Accurate answers with 💯 placement support
@Mrtrueliving_ix & Team
❤1
🔥 COGNIZANT Offline Interview Help Done ✅
🎯 From Technical Round → Placement Support
📩 DM: @Mrtrueliving_ix
🚀 Accurate answers with 💯 placement support
@Mrtrueliving_ix & Team