Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

View File

@ -0,0 +1,21 @@
#include <iostream>
#include <cstdio>
#define int long long
using namespace std;
signed main()
{
char a[1005];
scanf("%[^\n]", &a);
int i = 0, cnt = 0;
while(a[i] != '\0')
{
if(((a[i] == 'A' && a[i + 1] == 'C') || a[i] == a[i + 1]) && a[i] != ' ')
{
cnt ++ ;
}
i ++ ;
}
cout << cnt ;
return 0;
}