From 4aaa7db602991b645e9282d48b4fe988bab61ace Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Wed, 7 Jun 2023 22:31:31 +0600 Subject: [PATCH] Chnaged folder names --- .../112A.cpp | 0 {158A-NextRound => 158A Next Round}/158A.cpp | 0 1829A Love Story/1829A.cpp | 22 +++++++++++++++ 1829B Blank Spaces/1829B.cpp | 28 +++++++++++++++++++ .../1833C.cpp | 0 .../1A.cpp | 0 {231A-Team => 231A Team}/231A.cpp | 0 {236A-BoyOrGirl => 236A Boy Or Girl}/236A.cpp | 0 .../263A.cpp | 0 .../281A.cpp | 0 {282A-Bit++ => 282A Bit++}/282A.cpp | 0 .../339A.cpp | 0 {4A-Watermelon => 4A Watermelon}/4A.cpp | 0 .../50A.cpp | 0 546A Soldier and Bananas/546A.cpp | 15 ++++++++++ {617A-Elephant => 617A Elephant}/617A.cpp | 0 .../71A.cpp | 0 .../791A.cpp | 0 18 files changed, 65 insertions(+) rename {112A-PetyaAndStrings => 112A Petya And Strings}/112A.cpp (100%) rename {158A-NextRound => 158A Next Round}/158A.cpp (100%) create mode 100644 1829A Love Story/1829A.cpp create mode 100644 1829B Blank Spaces/1829B.cpp rename {1833C-VladBuildingBeautifulArray => 1833C Vlad Building Beautiful Array}/1833C.cpp (100%) rename {1A-Theater Square => 1A Theater Square}/1A.cpp (100%) rename {231A-Team => 231A Team}/231A.cpp (100%) rename {236A-BoyOrGirl => 236A Boy Or Girl}/236A.cpp (100%) rename {263A-BeautifulMatrix => 263A Beautiful Matrix}/263A.cpp (100%) rename {281A-WordCapitalization => 281A Word Capitalization}/281A.cpp (100%) rename {282A-Bit++ => 282A Bit++}/282A.cpp (100%) rename {339A-HelpfulMaths => 339A Helpful Maths}/339A.cpp (100%) rename {4A-Watermelon => 4A Watermelon}/4A.cpp (100%) rename {50A-DominoPiling => 50A DominoPiling}/50A.cpp (100%) create mode 100644 546A Soldier and Bananas/546A.cpp rename {617A-Elephant => 617A Elephant}/617A.cpp (100%) rename {71A-WayTooLongWords => 71A Way Too Long Words}/71A.cpp (100%) rename {791A-BearAndBigBrother => 791A Bear And Big Brother}/791A.cpp (100%) 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<