Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
https://www.linkedin.com/posts/career-avasoft_career-ai-ml-activity-7239208938657738752-dcJp?utm_source=share&utm_medium=member_desktop
Form
https://bit.ly/Avawalkin-AI-ML
Test date 14&21
Form
https://bit.ly/Avawalkin-AI-ML
Test date 14&21
Linkedin
Hiring! | Career @ AVASOFT | 497 comments
Hiring! AI/ML Trainee Engineer!
Kick-start your dream career with AVASOFT as a AI/ML Trainee Engineer.
Register Now 👇
https://lnkd.in/gry2_Tcu
#career #AI #ML #TraineeEngineer #walkin #hiring #job AVASOFT | 497 comments on LinkedIn
Kick-start your dream career with AVASOFT as a AI/ML Trainee Engineer.
Register Now 👇
https://lnkd.in/gry2_Tcu
#career #AI #ML #TraineeEngineer #walkin #hiring #job AVASOFT | 497 comments on LinkedIn
Please open Telegram to view this post
VIEW IN TELEGRAM
https://careers.infoedge.com/#!/job-view/software-engineer-noida-2024071212200695
Test mail confirmed 🤗🤘🏻
Test mail confirmed 🤗🤘🏻
🎉1
Please open Telegram to view this post
VIEW IN TELEGRAM
def can_rob_all(houses, H, K):
return sum((house + K - 1) // K for house in houses) <= H
def main():
import sys
input = sys.stdin.read
data = list(map(int, input().split()))
N, H = data[0], data[1]
A = data[2:2+N]
left, right = 1, max(A)
while left < right:
mid = (left + right) // 2
if can_rob_all(A, H, mid):
right = mid
else:
left = mid + 1
print(left)
main()
Rechile World // Flipkart
#include <iostream>
#include <vector>
double calculateHouseTax(int income) {
if (income < 50000) {
return income * 0.1;
} else if (income < 100000) {
return 5000 + (income - 50000) * 0.2;
} else {
return 5000 + 10000 * 0.2 + (income - 100000) * 0.3;
}
}
double calculateTax(std::vector<std::pair<int, int>> houses, std::vector<int> specialHouses) {
double totalTax = 0;
for (auto& house : houses) {
int index = house.first;
int income = house.second;
if (index == specialHouses[0]) {
continue;
} else if (index == specialHouses[1]) {
totalTax += calculateHouseTax(income) * 2;
} else if (index == specialHouses[2]) {
totalTax += calculateHouseTax(income) * 0.9;
} else {
totalTax += calculateHouseTax(income);
}
}
return totalTax;
}
int main() {
int n;
std::cin >> n;
std::vector<int> specialHouses(3);
for (int i = 0; i < 3; i++) {
std::cin >> specialHouses[i];
}
std::vector<std::pair<int, int>> houses(n);
for (int i = 0; i < n; i++) {
std::cin >> houses[i].first >> houses[i].second;
}
if (n) {
std::cout << (int)calculateTax(houses, specialHouses) << std::endl;
} else {
std::cout << -1 << std::endl;
}
return 0;
}
Tax collection// Flipkart
import math
def prime(x):
if x <= 1:
return False
for i in range(2, int(math.sqrt(x)) + 1):
if x % i == 0:
return False
return True
def run():
a, b = map(int, input().split())
c = 0
for n in range(a, b + 1):
if prime(n - 1) and prime(n + 1):
c += 1
print(c)
run()
Prime// Flipkart