| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81293 | sh25_zhuwy | 统计次数 | C++ | 通过 | 0 MS | 248 KB | 307 | 2026-01-04 15:44:47 |
#include <bits/stdc++.h> #include<cstring> using namespace std; int main() { string s; int n=0; int o=0; bool u; getline(cin,s); for(int i=0;i<s.size();++i){ n++; u=(ispunct(s[i])); o+=u; } cout<<n<<endl; cout<<o; return 0; }