- 2's solution
-
题解 P2
- @ 2026-3-29 16:44:01
水篇题解。
AC Code:
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
freopen("log.in", "r", stdin);
freopen("log.out", "w", stdout);
cin >> s;
s.erase(s.end() - 1);
cout << s.size();
return 0;
}