diff --git a/112A-PetyaAndStrings/112A.cpp b/112A Petya And Strings/112A.cpp similarity index 100% rename from 112A-PetyaAndStrings/112A.cpp rename to 112A Petya And Strings/112A.cpp diff --git a/158A-NextRound/158A.cpp b/158A Next Round/158A.cpp similarity index 100% rename from 158A-NextRound/158A.cpp rename to 158A Next Round/158A.cpp diff --git a/1829A Love Story/1829A.cpp b/1829A Love Story/1829A.cpp new file mode 100644 index 0000000..a95acfe --- /dev/null +++ b/1829A Love Story/1829A.cpp @@ -0,0 +1,22 @@ +#include +using namespace std; + +int main() +{ + int i, t, count; + cin >> t; + while (t--) + { + string s,c= "codeforces"; + cin >> s; + count = 0; + for (i = 0; i < 10; i++) + { + if (s[i] != c[i]) + { + count++; + } + } + cout << count << endl; + } +} \ No newline at end of file diff --git a/1829B Blank Spaces/1829B.cpp b/1829B Blank Spaces/1829B.cpp new file mode 100644 index 0000000..00fc6f2 --- /dev/null +++ b/1829B Blank Spaces/1829B.cpp @@ -0,0 +1,28 @@ +#include +using namespace std; +int main() +{ + int i, n, t, count, ans; + cin >> t; + while (t--) + { + cin >> n; + int a[n]; + ans = 0; + count = 0; + for (i = 0; i < n; i++) + { + cin >> a[i]; + if (a[i] == 0) + { + count++; + } + else + { + ans= max(count,ans); + count= 0; + } + } + cout << max(count,ans) << endl; + } +} \ No newline at end of file diff --git a/1833C-VladBuildingBeautifulArray/1833C.cpp b/1833C Vlad Building Beautiful Array/1833C.cpp similarity index 100% rename from 1833C-VladBuildingBeautifulArray/1833C.cpp rename to 1833C Vlad Building Beautiful Array/1833C.cpp diff --git a/1A-Theater Square/1A.cpp b/1A Theater Square/1A.cpp similarity index 100% rename from 1A-Theater Square/1A.cpp rename to 1A Theater Square/1A.cpp diff --git a/231A-Team/231A.cpp b/231A Team/231A.cpp similarity index 100% rename from 231A-Team/231A.cpp rename to 231A Team/231A.cpp diff --git a/236A-BoyOrGirl/236A.cpp b/236A Boy Or Girl/236A.cpp similarity index 100% rename from 236A-BoyOrGirl/236A.cpp rename to 236A Boy Or Girl/236A.cpp diff --git a/263A-BeautifulMatrix/263A.cpp b/263A Beautiful Matrix/263A.cpp similarity index 100% rename from 263A-BeautifulMatrix/263A.cpp rename to 263A Beautiful Matrix/263A.cpp diff --git a/281A-WordCapitalization/281A.cpp b/281A Word Capitalization/281A.cpp similarity index 100% rename from 281A-WordCapitalization/281A.cpp rename to 281A Word Capitalization/281A.cpp diff --git a/282A-Bit++/282A.cpp b/282A Bit++/282A.cpp similarity index 100% rename from 282A-Bit++/282A.cpp rename to 282A Bit++/282A.cpp diff --git a/339A-HelpfulMaths/339A.cpp b/339A Helpful Maths/339A.cpp similarity index 100% rename from 339A-HelpfulMaths/339A.cpp rename to 339A Helpful Maths/339A.cpp diff --git a/4A-Watermelon/4A.cpp b/4A Watermelon/4A.cpp similarity index 100% rename from 4A-Watermelon/4A.cpp rename to 4A Watermelon/4A.cpp diff --git a/50A-DominoPiling/50A.cpp b/50A DominoPiling/50A.cpp similarity index 100% rename from 50A-DominoPiling/50A.cpp rename to 50A DominoPiling/50A.cpp diff --git a/546A Soldier and Bananas/546A.cpp b/546A Soldier and Bananas/546A.cpp new file mode 100644 index 0000000..6f69ce6 --- /dev/null +++ b/546A Soldier and Bananas/546A.cpp @@ -0,0 +1,15 @@ +#include +using namespace std; + +int main() +{ + int k,n,w; + cin>>k>>n>>w; + int i,money=0; + for(i=1;i<=w;i++) + { + money=money+i*k; + } + if(money>n) cout<