Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 알고리즘
- coding
- 컴퓨터공학과
- 정석
- 코테
- vector
- DP
- 백준
- 자료구조
- 개발
- cs
- Operating System
- 정석학술정보관
- Computer science
- 브루트포스
- 그래프
- 구현
- bfs
- 오퍼레이팅시스템
- 스택
- 코딩
- 북리뷰
- Stack
- 컴공
- OS
- 문제풀이
- c++
- 오에스
- 너비우선탐색
- 컴공과
Archives
- Today
- Total
Little Jay
[C++] 백준 2743번 단어 길이 재기 본문
string에서 length메소드 생각하
#include <iostream>
#include <string>
using namespace std;
int main() {
string input;
cin >> input;
int len = input.length();
cout << len << "\n";
return 0;
}
'알고리즘 > BOJ' 카테고리의 다른 글
[C++] 백준 2747번 피보나치 수 (0) | 2021.02.28 |
---|---|
[C++] 백준 2693번 N번째 큰 수 (0) | 2021.02.28 |
[C++] 백준 3507번 Automated Telephone Exchange (0) | 2021.02.27 |
[C++] 백준 18108번 1998년생인 내가 태국에서는 2541년생?! (0) | 2021.02.27 |
[C++] 백준 2822번 점수계산 (0) | 2021.02.27 |
Comments