String
์ค์ต
์ํ๋ฒณ ๊ฐ์
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string s;
cin >> s;
for (int i='a'; i<='z'; i++) {
cout << count(s.begin(), s.end(), i) << ' ';
}
cout << '\n';
}์ํ๋ฒณ ์์น
๋ฌธ์์ด ๋ถ์
๋จ์ด ๊ธธ์ด ์ฌ๊ธฐ
ROT13
๋ฌธ์์ด -> ์ ์
์ ์ -> ๋ฌธ์์ด
์ ๋ฏธ์ฌ ๋ฐฐ์ด
Last updated