Code_sagar
If anyone want paid help contact here: @code_sagar
Больше3 085
Подписчики
-224 часа
-107 дней
-4330 дней
- Подписчики
- Просмотры постов
- ER - коэффициент вовлеченности
Загрузка данных...
Прирост подписчиков
Загрузка данных...
https://x.com/Technol00668627/status/1753779762995118438?s=20
Fresher job posted 🤞🤞🤞🤞
Check it fast, like and follow💗
Coder_guys (@Technol00668627) on Xhttps://t.co/jqIY77jNn0
RedHat hiring fresher 🤞🤞🤞 Role: Associate software maintenance engineer #JobsReport #Job #hiring #itjob #redhat
❤ 2❤🔥 1👍 1
Zoho hiring!!!!
Role: Software developer
Batch : upto 2024
https://x.com/Technol00668627/status/1751998294689972405?s=20
Coder_guys (@Technol00668627) on X
Zoho hiring!!!! Role: Software developer Upto 2024 can apply Apply here:
https://t.co/IESM9BgO99Follow for more
❤🔥 1
int LCM(int a,int b)
{
return (a*b)/(__gcd(a,b));
}
void solve()
{
int n;cin>>n;
vector<int>a(n);
for(int i=0;i<n;i++)
{
cin>>a[i];
}
int cnt = 0;
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
int x = LCM(a[i],a[j]);
int y = __gcd(a[i],a[j]);
if(x-y==0)
{
cnt++;
}
}
}
cout<<cnt<<endl;
}
@code_sagar
👍 2
def binary_to_dna(binary_input):
mapping = {'00': 'A', '01': 'C', '10': 'G', '11': 'T'}
dna_sequence = ''
for i in range(0, len(binary_input), 2):
pair = binary_input[i:i+2]
dna_sequence += mapping[pair]
return dna_sequence
binary_input = '000001001011101010010110011'
output = binary_to_dna(binary_input)
print(output)
DNA
❤ 2👍 1💯 1
def validate_user_and_generate_token(user_id, password, num_digits):
"""Checks user credentials, generates a token if valid, and displays appropriate messages."""
users = ["user1", "pass1", "user2", "pass2", "user3", "pass3", "user4", "pass4", "user5", "pass5"]
if user_id in users and users[users.index(user_id) + 1] == password:
token = generate_palindrome_token(num_digits)
print(f"Welcome {user_id} and the generated token is: token-{token}")
else:
print("User ID or password is not valid. Please try again.")
def generate_palindrome_token(num_digits):
"""Generates the first palindrome number with the specified number of digits."""
num = 1
while len(str(num)) != num_digits or str(num) != str(num)[::-1]:
num += 1
return num
IBM CODE @code_sagar
👍 1
Выберите другой тариф
Ваш текущий тарифный план позволяет посмотреть аналитику только 5 каналов. Чтобы получить больше, выберите другой план.