문자열(String)
백준 15837번 : 백준 온라인 저지
cepiloth
2018. 6. 20. 10:26
반응형
https://www.acmicpc.net/problem/15857
1. 문제
백준 온라인 저지 사용에 대한 문제.
2. 알고리즘
각 문제 별 답안을 출력한다.
3. 코드
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | // input your code here#include <iostream> #include <sstream> #include <string> #include <algorithm> #include <functional> #include <vector> #include <list> #include <queue> #include <map> #include <set> #include <stack> using namespace std; int main() { std::ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; string s = " abbcdddc"; cout << s[n] << "\n"; return 0; } | cs |
반응형