mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 20:48:48 +00:00
760. 字符串长度
https://www.acwing.com/problem/content/submission/code_detail/14063266/
This commit is contained in:
parent
70ab02ef3c
commit
3b0f1223cf
17
AcWing/760/760.cpp
Normal file
17
AcWing/760/760.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
std::string s;
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
std::getline(cin, s);
|
||||
cout << s.size() << endl;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user