SURROUND YOURSELF WITH ONLY PEOPLE WHO ARE GOING TO LIFT YOU HIGHER... πππͺππ₯β€οΈ
-@Mrtrueliving_ix
-@Mrtrueliving_ix
β€6π2
Please open Telegram to view this post
VIEW IN TELEGRAM
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
int calculate_gcd(int a, int b) {
if (a == 0) return b;
if (b == 0) return a;
return std::gcd(a, b);
}
long long dp[20][2][2][10][2];
bool visited[20][2][2][10][2];
std::string S;
long long solve(int idx, bool tight, bool is_leading_zero, int current_gcd_val, bool has_zero_digit) {
if (idx == S.length()) {
if (is_leading_zero) {
return 0;
}
if (has_zero_digit) {
return 0;
}
return current_gcd_val;
}
if (visited[idx][tight][is_leading_zero][current_gcd_val][has_zero_digit]) {
return dp[idx][tight][is_leading_zero][current_gcd_val][has_zero_digit];
}
long long ans = 0;
int upper_bound = tight ? (S[idx] - '0') : 9;
for (int digit = 0; digit <= upper_bound; ++digit) {
bool new_tight = tight && (digit == upper_bound);
bool new_is_leading_zero = is_leading_zero && (digit == 0);
bool new_has_zero_digit = has_zero_digit || (!is_leading_zero && digit == 0);
int next_gcd_for_param;
if (new_is_leading_zero) {
next_gcd_for_param = 0;
} else {
if (digit != 0) {
if (current_gcd_val == 0) {
next_gcd_for_param = digit;
} else {
next_gcd_for_param = calculate_gcd(current_gcd_val, digit);
}
} else {
next_gcd_for_param = current_gcd_val;
}
}
ans += solve(idx + 1, new_tight, new_is_leading_zero, next_gcd_for_param, new_has_zero_digit);
}
visited[idx][tight][is_leading_zero][current_gcd_val][has_zero_digit] = true;
return dp[idx][tight][is_leading_zero][current_gcd_val][has_zero_digit] = ans;
}
long long solve_up_to(long long N_val) {
if (N_val == 0) {
return 0;
}
S = std::to_string(N_val);
for (int i = 0; i < 20; ++i) {
for (int j = 0; j < 2; ++j) {
for (int k = 0; k < 2; ++k) {
for (int l = 0; l < 10; ++l) {
for (int m = 0; m < 2; ++m) {
visited[i][j][k][l][m] = false;
dp[i][j][k][l][m] = 0;
}
}
}
}
}
return solve(0, true, true, 0, false);
}
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(NULL);
int T;
std::cin >> T;
while (T--) {
long long L, R;
std::cin >> L >> R;
long long ans_R = solve_up_to(R);
long long ans_L_minus_1 = solve_up_to(L - 1);
long long final_answer = ans_R - ans_L_minus_1;
std::cout << final_answer << std::endl;
}
return 0;
}
Sequence gcd
Please open Telegram to view this post
VIEW IN TELEGRAM
π¨ Infosys - SP or DSE Update π¨
There are no official dates announced yet for the Infosys Online Assessment (OA).
π’ Please wait patiently for the official communication.
β Don't panic, stay prepared and confident!
We'll update you as soon as the dates are released. πͺ
#Infosys #PlacementAlert #StayReady
Successfully cleared JUSPAY -R2βοΈ
Test accomplished β€οΈ | ONCAMPUS
DM @Mrtrueliving_ix for test clearance
#JUSPAY #R2 #ONCAMPUS #2026batch
Preview proof.
https://t.me/code_alphix/6911?single
Please open Telegram to view this post
VIEW IN TELEGRAM
Infosys Previous Year Hiring Timeline (2024):
π’ Test Announced: 4th July 2024
π Test Conducted: 7th July 2024
Based on my previous yearβs experience, this timeline is highly likely to repeat this year as well. ππ»βοΈ
Stay prepared and alert for updates!
https://t.me/code_alphix/604
π’ Test Announced: 4th July 2024
π Test Conducted: 7th July 2024
Based on my previous yearβs experience, this timeline is highly likely to repeat this year as well. ππ»βοΈ
Stay prepared and alert for updates!
https://t.me/code_alphix/604
β€2
π¨ 2026 Batch β Big Hiring Chance! π¨
Freshers, donβt miss this walk-in hiring drive in Pune β especially for 2026 batch students!
πΌ Roles Available:
πΉ Flutter Developer
πΉ Python Developer Intern
πΉ AI/ML Developer Intern
π° CTC: Up to βΉ5 LPA
π Location: Pune (Onsite)
π Eligibility: Any Degree | Any Branch | Graduation: 2019β2026
π Drive Dates: 4th to 8th July
β οΈ Last Date to Apply: 8th July
π§³ Bring your laptop & earphones for assessment
Register Here:
1. Flutter Developer: https://go.acciojob.com/x4Th2C
2. Python Developer Intern: https://go.acciojob.com/wv94Yh
3. AI/ML Developer Intern: https://go.acciojob.com/rSFpxS
π₯ 2026 Batch β Start your career early with real-world tech exposure!
Freshers, donβt miss this walk-in hiring drive in Pune β especially for 2026 batch students!
πΌ Roles Available:
πΉ Flutter Developer
πΉ Python Developer Intern
πΉ AI/ML Developer Intern
π° CTC: Up to βΉ5 LPA
π Location: Pune (Onsite)
π Eligibility: Any Degree | Any Branch | Graduation: 2019β2026
π Drive Dates: 4th to 8th July
β οΈ Last Date to Apply: 8th July
π§³ Bring your laptop & earphones for assessment
Register Here:
1. Flutter Developer: https://go.acciojob.com/x4Th2C
2. Python Developer Intern: https://go.acciojob.com/wv94Yh
3. AI/ML Developer Intern: https://go.acciojob.com/rSFpxS
π₯ 2026 Batch β Start your career early with real-world tech exposure!
β€4
Gigmon Help doneβοΈ
Test accomplished β€οΈ | ONCAMPUS
DM @Mrtrueliving_ix for test clearance
#Gigmon #ONCAMPUS #R1
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Capital one help doneβοΈ π
Test accomplished β€οΈ || 1200
All 4/ 4 codes done with plagfree
@Mrtrueliving_ix for test clearance π―
#CapitalOne #Offcampus #Associate
All placement help availableβ
Please open Telegram to view this post
VIEW IN TELEGRAM
Allegion Help doneβοΈ
Test accomplished πͺ
@Mrtrueliving_ix for test clearance
#Allegion #Offcampus #R1
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
UBS QA adavance Help β .....
@Mrtrueliving_ix for test clearance
#Ubs #Offcampus #QA
Test accomplished β€οΈ
#All placement help availableπΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π¨ Donβt Miss This Opportunity! π«π
Mahindra Rise Ignitors 2025 is hiring freshers for the role of Graduate Engineer Trainee / Post Graduate Engineer Trainee! π§πΌ
π Eligibility: BE / B.Tech
π Batch: 2024 & 2025
π° Salary: βΉ3.5 LPA β βΉ6.5 LPA (Expected)
π₯ A golden chance to start your career with a top-tier company!
π Apply Now:
https://talenttitan.com/candidates/hiring-drives/mahindra-campus-hiring/#job-appiy-form
#MahindraHiring #Freshers2025 #PlacementDrive #EngineeringJobs #CareerOpportunity
Mahindra Rise Ignitors 2025 is hiring freshers for the role of Graduate Engineer Trainee / Post Graduate Engineer Trainee! π§πΌ
π Eligibility: BE / B.Tech
π Batch: 2024 & 2025
π° Salary: βΉ3.5 LPA β βΉ6.5 LPA (Expected)
Check your eligibility criteria
π₯ A golden chance to start your career with a top-tier company!
π Apply Now:
https://talenttitan.com/candidates/hiring-drives/mahindra-campus-hiring/#job-appiy-form
#MahindraHiring #Freshers2025 #PlacementDrive #EngineeringJobs #CareerOpportunity
Talent Titan - AI Agentic HR Tech Platform
Mahindra Campus Hiring Drive | Talent Titan
TalentTitan is hiring IT/CS/Electronics candidates for Mahindra at competitive salary packages!