update
This commit is contained in:
parent
5d4dd86657
commit
8aeca62d3b
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ build
|
|||||||
!.gitignore
|
!.gitignore
|
||||||
*.json
|
*.json
|
||||||
/cmake-build*
|
/cmake-build*
|
||||||
|
/build*
|
0
src/U206625/U206625_myself.cpp
Normal file
0
src/U206625/U206625_myself.cpp
Normal file
@ -6,7 +6,7 @@
|
|||||||
using std::cin, std::cout, std::string, std::vector, std::iostream;
|
using std::cin, std::cout, std::string, std::vector, std::iostream;
|
||||||
constexpr auto range = std::ranges::views::iota;
|
constexpr auto range = std::ranges::views::iota;
|
||||||
|
|
||||||
int n;
|
size_t n;
|
||||||
string s;
|
string s;
|
||||||
int a_num, b_num;
|
int a_num, b_num;
|
||||||
char max_char, min_char;
|
char max_char, min_char;
|
||||||
@ -28,7 +28,7 @@ int main(){
|
|||||||
iostream::sync_with_stdio(false), cin.tie(0), cout.tie(0);
|
iostream::sync_with_stdio(false), cin.tie(0), cout.tie(0);
|
||||||
cin>>n;
|
cin>>n;
|
||||||
cin>>s;
|
cin>>s;
|
||||||
for(const int i:range(0,n)){
|
for(const int i:range((size_t)0,n)){
|
||||||
if(s[i]=='A') {
|
if(s[i]=='A') {
|
||||||
a_num++;
|
a_num++;
|
||||||
}else if(s[i]=='B'){
|
}else if(s[i]=='B'){
|
||||||
|
Loading…
Reference in New Issue
Block a user