delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

34
2.1641.cpp Normal file
View File

@ -0,0 +1,34 @@
#include<iostream>
using namespace std;
int h,w,s,flag;
char ch;
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
while(cin>>h>>w)
{
s=0;
for(int i=0;i<h;i++)
{
flag=0;
for(int j=0;j<w;j++)
{
cin>>ch;
switch(ch)
{
case '/':case '\\':
flag=!flag;
s++;
break;
case '.':
s+=flag*2;
break;
}
}
}
printf("%d\n",s/2);
}
return 0;
}