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