#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long ans = 0;
for (long long i = 1; i * i <= n; i++) {
if (n % i == 0) {
ans += i;
if (i != n / i) {
ans += n / i;
}
}
}
cout << ans << endl;
return 0;
}
Sum of divisors โ
using namespace std;
int main() {
long long n;
cin >> n;
long long ans = 0;
for (long long i = 1; i * i <= n; i++) {
if (n % i == 0) {
ans += i;
if (i != n / i) {
ans += n / i;
}
}
}
cout << ans << endl;
return 0;
}
Sum of divisors โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Arsh Bhatia on LinkedIn: #hiring #careeropportunities #razorpay #techjobs #referral #jointheteamโฆ | 335 comments
๐ Exciting Opportunities at Razorpay! ๐
Razorpay is on the lookout for talented individuals to join their prestigious organization. If youโre passionateโฆ | 335 comments on LinkedIn
Razorpay is on the lookout for talented individuals to join their prestigious organization. If youโre passionateโฆ | 335 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Rubrik
Role: Software Engineer (Winter Intern)
Batch eligible: 2025 grads only
Apply: https://www.rubrik.com/company/careers/departments/job.6195381
Role: Software Engineer (Winter Intern)
Batch eligible: 2025 grads only
Apply: https://www.rubrik.com/company/careers/departments/job.6195381
Rubrik
Error
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: GFG
Role: MTS (DSA)
Eligibility: Only for 2024/ 2025 pass-outs
Location: Onsite (Noida Sector 136)
Duration: 6 months
Internship starting immediately.
If interested send your resume to: shreya.singh@geeksforgeeks.org
Role: MTS (DSA)
Eligibility: Only for 2024/ 2025 pass-outs
Location: Onsite (Noida Sector 136)
Duration: 6 months
Internship starting immediately.
If interested send your resume to: shreya.singh@geeksforgeeks.org
int findNetworkEndpoint(int start, const vector<int>& fromNodes, const vector<int>& toNodes) {
if (fromNodes.size() <= 0 || toNodes.size() >= 10000) return 0;
unordered_map<int, int> nodeMap;
for (size_t i = 0; i < fromNodes.size(); ++i) {
nodeMap[fromNodes[i]] = toNodes[i];
}
while (nodeMap.find(start) != nodeMap.end()) {
start = nodeMap[start];
}
return start;
}
Apple โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
void solve(vector<int> &curr, int L, int R, int &fm, int &sm) {
fm = INT_MIN;
sm = INT_MIN;
for (int i = L; i <= R; ++i) {
if (curr[i] > fm) {
sm = fm;
fm = curr[i];
} else if (curr[i] > sm) {
sm = curr[i];
}
}
}
int main() {
int N, Q;
cin >> N;
vector<int> curr(N + 1);
for (int i = 1; i <= N; ++i) {
cin >> curr[i];
}
cin >> Q;
for (int q = 0; q < Q; ++q) {
int L, R;
cin >> L >> R;
int fm, sm;
solve(curr, L, R, fm, sm);
int ans = (fm + sm) / 2;
cout << ans << endl;
}
return 0;
}
Globallogic โ
using namespace std;
void solve(vector<int> &curr, int L, int R, int &fm, int &sm) {
fm = INT_MIN;
sm = INT_MIN;
for (int i = L; i <= R; ++i) {
if (curr[i] > fm) {
sm = fm;
fm = curr[i];
} else if (curr[i] > sm) {
sm = curr[i];
}
}
}
int main() {
int N, Q;
cin >> N;
vector<int> curr(N + 1);
for (int i = 1; i <= N; ++i) {
cin >> curr[i];
}
cin >> Q;
for (int q = 0; q < Q; ++q) {
int L, R;
cin >> L >> R;
int fm, sm;
solve(curr, L, R, fm, sm);
int ans = (fm + sm) / 2;
cout << ans << endl;
}
return 0;
}
Globallogic โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ฅ1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hi Guys Accenture link is still active . Please kindly apply ..
Those who are 2019 ,2020,21,22 ,23,24kindly use this opportunity
Eligibility Criteria:
Minimum criteria- Any engineering stream of B.E/B.Tech/M.E/MTech or MCA or MSc (CS/IT/Computer Applications/Data Science/Computer Science & Applications) - any year of pass out till 2024.
Apply link :: https://indiacampus.accenture.com/myzone/accenture/1/jobs/25377/job-details
Those who are 2019 ,2020,21,22 ,23,24kindly use this opportunity
Eligibility Criteria:
Minimum criteria- Any engineering stream of B.E/B.Tech/M.E/MTech or MCA or MSc (CS/IT/Computer Applications/Data Science/Computer Science & Applications) - any year of pass out till 2024.
Apply link :: https://indiacampus.accenture.com/myzone/accenture/1/jobs/25377/job-details
Accenture
Accenture | MyZone
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: ADP
Role: Associate Software Engineer
Batch eligible: 2023 and 2024 grads
Apply: https://tech.adp.com/en/jobs/5001062748906/associate-software-engineer
Role: Associate Software Engineer
Batch eligible: 2023 and 2024 grads
Apply: https://tech.adp.com/en/jobs/5001062748906/associate-software-engineer
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Eightfold
Role: Software Engineer
Batch eligible: 2024 grads only
Apply: https://employee.eightfold.ai/careers/job/68744096803?domain=volkscience.com
Role: Software Engineer
Batch eligible: 2024 grads only
Apply: https://employee.eightfold.ai/careers/job/68744096803?domain=volkscience.com
employee.eightfold.ai
Careers at Eightfold
Career openings at Eightfold
int countSquares(int arr[], int N)
{
// Stores the count of array elements
int count = 0;
// Stores frequency of visited elements
unordered_map<int, int> m;
// Traverse the array
for (int i = 0; i < N; i++) {
m[arr[i]] = m[arr[i]] + 1;
}
for (int i = 0; i < N; i++) {
// Square of the element
int square = arr[i] * arr[i];
// Update the count
count += m[square];
}
// Print the count
cout << count;
}
Wells Fargo โ
{
// Stores the count of array elements
int count = 0;
// Stores frequency of visited elements
unordered_map<int, int> m;
// Traverse the array
for (int i = 0; i < N; i++) {
m[arr[i]] = m[arr[i]] + 1;
}
for (int i = 0; i < N; i++) {
// Square of the element
int square = arr[i] * arr[i];
// Update the count
count += m[square];
}
// Print the count
cout << count;
}
Wells Fargo โ