Algorithm/백준
[백준] 2743번: 단어 길이 재기
youngine
2021. 1. 19. 21:02
2743번: 단어 길이 재기
알파벳으로만 이루어진 단어를 입력받아, 그 길이를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
#include <iostream>
#include<vector>
#include<string>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s = "";
cin >> s;
cout << s.length();
}