2 051
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
Hi 丹ℓekhyα , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi a , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi Jacob , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi Gayatri , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <bits/stdc++.h>
using namespace std;
long long f[5005];
int a[5005], b[5005];
int main(){
int n;
while(scanf("%d", &n) != EOF){
for(int i = 0; i <= n; i ++)
f[i] = 0;
for(int i = 1; i <= n; i ++){
scanf("%d", &a[i]);
b[i] = a[i];
}
sort(b + 1, b + 1 + n);
for(int i = 1; i <= n; i ++)
for(int j = 1; j <= n; j ++){
f[j] += abs(a[i] - b[j]);
if(j > 1)
f[j] = min(f[j - 1], f[j]);
}
cout << f[n] << endl;
}
return 0;
}
We are very 😊 happy to inform you that..
We are once more going for the Guinness Book of world 🌍 record ⏺ by Organising webinar with almost 2.5 million participants ( 25 lakh )🤵🏼 at a time...
⚡️⚡️⚡️⚡️⚡️⚡️⚡️
⚡️⚡️It's FREE⚡️⚡️
⚡️⚡️⚡️⚡️⚡️⚡️⚡️
👉🏼👉🏼 You will get the certificate📜📜 of participation.
ISKCON 🛕 specially collobrating with 🧑⚕️Dr. Vivek Bindra For this special webinar 🎦 ..
This is a great opportunity to learn the business ideas ❕ on the base of bhagwat gita 📖 with vedic ⚛️wisdoms ..📜
Topic :- Business Yoga From Bhagwat Gita
Speaker:- Dr. Vivek Bindra
Date:- 20th June,2021 on sunday
Mode:- Online link will be provided to registered participants
👇👇Register now👇👇
https://iiyc.co.in/?event=SP116
अधिक जानकारी के लिए ( यदि व्हाट्सएप ना हो तो) call at
+918830346461
Join Our Telegram Group
https://t.me/joinchat/ajp3WH4Atp40ODQ1
📢📢 Hurry up 🏃🏽♂️🏃🏽♂️🏃♀️🏃♀️📢📢
With Regards ISKCON
Hi sz Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi Veerabathini Akshay , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
static void solve(int n, String a, String b)
{
int i, j, res = 0;
int count [] = new int [256];
for(i = 0; i < a.length(); i++)
{
count[a.charAt(i)]++;
count[b.charAt(i)]--;
}
for(i = 0; i < 256; i++)
if(count[i] != 0)
return -1;
i = a.length() - 1;
j = b.length() - 1;
while(i >= 0)
{
if(a.charAt(i) != b.charAt(j))
res++;
else
j--;
i--;
}
}
if(res==n){
System .out.Println("yes")
}
else{
System.out.println("no")
}
}
Hi Akshay Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
