Little Jay

[C++] 백준 2743번 단어 길이 재기 본문

알고리즘/BOJ

[C++] 백준 2743번 단어 길이 재기

Jay, Lee 2021. 2. 27. 17:02

string에서 length메소드 생각하

#include <iostream>
#include <string>
using namespace std;

int main() {

  string input;
  cin >> input;
  int len = input.length();
  cout << len << "\n";

  return 0;
}
Comments