| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82408 | sh25_shenpy | 表达式括号匹配 | C++ | 编译错误 | 0 MS | 0 KB | 289 | 2026-01-11 20:30:45 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int i=0,j=0,k=0; while(s[i]!='@'){ if(ispunct(s[i]){ if(s[i]=='(') ++j; if(s[i]==')') ++k; }} if(j==k) cout<<"YES"; else cout<<"NO"; return 0; }