C++)
#include <iostream>
#include <string>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string str;
cin >> str;
cout << str.length();
return 0;
}
Python)
import sys
temp = sys.stdin.readline().rstrip()
print(len(temp))'백준 1 > 기초' 카테고리의 다른 글
| [백준 10808] 알파벳 개수 (C++ / Python) (0) | 2020.12.05 |
|---|---|
| [백준 11655] ROT 13 (C++/Python) (0) | 2020.12.05 |
| [백준 10886] 0 = not cute / 1 = cute (C++/Python) (0) | 2020.12.05 |
| [백준 10992] 별 찍기 - 17 (C++) (0) | 2020.12.05 |
| [백준 10991] 별 찍기 - 16 (C++) (0) | 2020.12.05 |