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

24
1.1739.cpp Normal file
View File

@ -0,0 +1,24 @@
#include<cstdio>
#include<stack>
using namespace std;
stack<char> stk;
int main()
{
char t;
while(t=getchar(),t!='@')
{
if(t=='(') stk.push('(');
else if(t==')')
{
if(stk.empty())
{
printf("NO\n");
return 0;
}
if(stk.top()=='(') stk.pop();
}
}
if(stk.size()==0) printf("YES\n");
else printf("NO\n");
return 0;
}