def solve1(number):
digits = [int(d) for d in str(number)]
sum_digits = sum(digits)
max_digit = max(digits)
return (sum_digits - max_digit) == max_digit
def solve2(X, Y):
total_savings = 0
for number in range(X, Y + 1):
if solve1(number):
total_savings += number
return total_savings
X, Y = map(int, input().split())
print(solve2(X, Y))
MasterCard โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
int stockLounge(vector<int> onHand, vector<int> supplier, int demand) {
sort(onHand.begin(), onHand.end());
sort(supplier.begin(), supplier.end());
int totalSupplierUsed = 0;
int n = onHand.size(), m = supplier.size();
for (int i = 0; i < n; i++) {
demand -= min(demand, 1);
}
for (int i = 0; i < m; i++) {
if (demand > 0) {
int canTake = min(supplier[i], demand);
totalSupplierUsed += canTake;
demand -= canTake;
}
}
return totalSupplierUsed;
}
BNY Mellon โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hello Connections ! We are Hiring for Freshers in SOC ANALYST candidates who are interetsed for best placements in the IT firm .
Company : MID -LEVEL
Job Role : SOC Analyst
Tech stack : Cyber security
Experience : Fresher
Package : 3.6 Lpa
Location : Bangalore
Mode : WFH / WFO
Candidates should be proficient in the mentioned domain and should have a certification which is mandatory
Interested can share their resume on
Mail : hiring@shresthacloudsolutions.com
whatsapp : 9580192806
Mail : vikramshrestha1111@gmail.com
Company : MID -LEVEL
Job Role : SOC Analyst
Tech stack : Cyber security
Experience : Fresher
Package : 3.6 Lpa
Location : Bangalore
Mode : WFH / WFO
Candidates should be proficient in the mentioned domain and should have a certification which is mandatory
Interested can share their resume on
Mail : hiring@shresthacloudsolutions.com
whatsapp : 9580192806
Mail : vikramshrestha1111@gmail.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: Gain.pro
Location: Bangalore
Role: Web Developer
For Graduates: 2022, 2023, 2024
https://in.linkedin.com/jobs/view/web-developer-at-gain-pro-4001449490
Location: Bangalore
Role: Web Developer
For Graduates: 2022, 2023, 2024
https://in.linkedin.com/jobs/view/web-developer-at-gain-pro-4001449490
Linkedin
Gain.pro hiring Web Developer in Bengaluru, Karnataka, India | LinkedIn
Posted 11:20:06 AM. Who are we?Gain.pro is on a mission to provide global private market visibility. OurโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Riti Nema on LinkedIn: #atlassian #referral #softwareengineer #opening #hiringโฆ | 219 comments
Atlassian is hiring ๐ฅ. DM for referral
1) Role : Associate Support Engineer (REQ-2024-2445)
Experience : 1+ years in support
Batch : 2023 / 2022 / 2021 /โฆ | 219 comments on LinkedIn
1) Role : Associate Support Engineer (REQ-2024-2445)
Experience : 1+ years in support
Batch : 2023 / 2022 / 2021 /โฆ | 219 comments on LinkedIn
โค1
def maxNewSort(N, demons):
demons.sort(reverse=True)
ns = 0
csu = 0
for demon in demons:
if csu < demon:
ns += 1
csu = 0
csu += 1
return ns
TVS Max New Swords
๐1
#include <bits/stdc++.h>
using namespace std;
bool ss(const vector<int>& A, const vector<int>& B, const vector<int>& C, int X) {
unordered_set<int> possibleSums;
for (int a : A) {
for (int b : B) {
possibleSums.insert(a + b);
}
}
for (int c : C) {
if (possibleSums.find(X - c) != possibleSums.end()) {
return true;
}
}
return false;
}
int main() {
int N, M, L, Q;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; ++i) cin >> A[i];
cin >> M;
vector<int> B(M);
for (int i = 0; i < M; ++i) cin >> B[i];
cin >> L;
vector<int> C(L);
for (int i = 0; i < L; ++i) cin >> C[i];
cin >> Q;
vector<int> queries(Q);
for (int i = 0; i < Q; ++i) cin >> queries[i];
for (int X : queries) {
if (ss(A, B, C, X)) {
cout << "Yes\n";
} else {
cout << "No\n";
}
}
return 0;
}
TVS โ
๐2
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
bool comparePairs(const pair<int, int>& p1, const pair<int, int>& p2) {
if (p1.first == p2.first) {
return p1.second < p2.second;
}
return p1.first > p2.first;
}
int mergeAndSort(vector<int>& proce, vector<int>& support) {
int n = proce.size();
vector<pair<int, int>> merged;
int ans = 0;
for (int i = 0; i < n; ++i) {
merged.push_back({support[i], proce[i]});
ans += proce[i];
}
sort(merged.begin(), merged.end(), comparePairs);
ans = min(merged[0].first, ans);
int curr = 0;
for (int i = 1; i < n; ++i) {
curr += merged[i - 1].second;
ans = min(ans, max(curr, merged[i].first));
}
return ans;
}
CHUBB REAL TIME MESSAGINGโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
public static int numDuplicates(List<String> name, List<Integer> price, List<Integer> weight) {
int res=0;
HashSet<String> set = new HashSet<String>();
for(int i=0;i<name.size();i++){
String cmb = name.get(i) + "_" + price.get(i)+ "_" + weight.get(i);
if(set.contains(cmb)){
res++;
}
else{
set.add(cmb);
}
}
return res;
}
}
Chubb Dupilactes productsโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
double solve(int n, const vector<int>& prices) {
vector<int> sorted_prices = prices;
sort(sorted_prices.begin(), sorted_prices.end(), greater<int>());
int keep_count = (4 * n) / 5;
long long sum = 0;
for (int i = 0; i < keep_count; ++i) {
sum += sorted_prices[i];
}
return static_cast<double>(sum) / keep_count;
}
int main() {
int n;
cin >> n;
vector<int> prices(n);
for (int i = 0; i < n; ++i) {
cin >> prices[i];
}
double result = solve(n, prices);
cout << fixed << setprecision(5) << result << endl;
return 0;
}
TVSโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
int n;
cin >> n;
vector<int> A(n);
for (int i = 0; i < n; i++)
{
cin >> A[i];
}
int ans = 0;
for (int i = 0; i < n - 1; ++i) {
while (A[i] > A[i + 1]) {
A[i] *= 2;
++ans;
}
}
cout << ans << endl;
\\increasing array tvsโ
cin >> n;
vector<int> A(n);
for (int i = 0; i < n; i++)
{
cin >> A[i];
}
int ans = 0;
for (int i = 0; i < n - 1; ++i) {
while (A[i] > A[i + 1]) {
A[i] *= 2;
++ans;
}
}
cout << ans << endl;
\\increasing array tvsโ
def ss(D, H, Mi, S, M, L, N):
ww = (D * 24 * 60 * 60) + (H * 60 * 60) + (Mi * 60) + S
s = M * L * N
e = ww // s
a = ww % s
r = a // (L * N)
a = a % (L * N)
d = a // N
q = a % N
return e, r, d, q
D, H, Mi, S = map(int, input().split())
M, L, N = map(int, input().split())
ww = ss(D, H, Mi, S, M, L, N)
print(f"{ww[0]} {ww[1]} {ww[2]} {ww[3]}")
TVSโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Indigooooo Airlines Hiring for Airport Operations and Customer Support โค๏ธโค๏ธโค๏ธ๐ช๐ช๐ช๐ช๐ฅ๐ฅ๐ฅ๐ฅ
Reporting Time to the below Venues: 08:30 AM.
Salary: Upto 7 Lacs Per Annum..๐ฅ๐ฅ
Interview Date :- 29-August
Time :- 8am-11am
Location :- Kochi
Address :- Hotel Ginger, Metro Pillar 668,Doraiswamy Iyer Rd,off Mahatma Gandhi Road,Shenoys,Kochi,Ernakulam,Kerala - 682035
Interview Date :- 30-August Time :- 10am-1pm
Location :- Lucknow Address :- Hotel Pinnacle, Sector D, C.P. - 151, Parag Rd, near Power House Chauraha, Sector D1, LDA Colony, Lucknow, Uttar Pradesh 226012
Interview Date :- 30-August Time :- 1pm-4pm
Location :- Prayagraj Address :- Hotel Max - Multi Functional Complex , Civil Lines Railway Station Compound, Prayagraj, Uttar Pradesh 211001
Interview Date :- 31-August
Time :- 9am-12pm
Location :- Kolkata
Address :- Hotel Gallery - HUDCO MORE, 67, Bagmari Rd, near Ultadanga, Kolkata, West Bengal 700054
Interview Date :- 31-August
Time :- 9am-12pm
Location :- Noida
Address :- Hotel Bellmont,14/1, opposite Botanical Garden Metro Station, Sector 37, Noida
Reporting Time to the below Venues: 08:30 AM.
Salary: Upto 7 Lacs Per Annum..๐ฅ๐ฅ
Interview Date :- 29-August
Time :- 8am-11am
Location :- Kochi
Address :- Hotel Ginger, Metro Pillar 668,Doraiswamy Iyer Rd,off Mahatma Gandhi Road,Shenoys,Kochi,Ernakulam,Kerala - 682035
Interview Date :- 30-August Time :- 10am-1pm
Location :- Lucknow Address :- Hotel Pinnacle, Sector D, C.P. - 151, Parag Rd, near Power House Chauraha, Sector D1, LDA Colony, Lucknow, Uttar Pradesh 226012
Interview Date :- 30-August Time :- 1pm-4pm
Location :- Prayagraj Address :- Hotel Max - Multi Functional Complex , Civil Lines Railway Station Compound, Prayagraj, Uttar Pradesh 211001
Interview Date :- 31-August
Time :- 9am-12pm
Location :- Kolkata
Address :- Hotel Gallery - HUDCO MORE, 67, Bagmari Rd, near Ultadanga, Kolkata, West Bengal 700054
Interview Date :- 31-August
Time :- 9am-12pm
Location :- Noida
Address :- Hotel Bellmont,14/1, opposite Botanical Garden Metro Station, Sector 37, Noida