#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
string check = "abcdefghijklmnopqrstuvwxyz";
cin >> S;
for (int i = 0; i < check.length(); i++) {
if (S.find(check[i]) == string::npos)
cout << -1 << " ";
else
cout << S.find(check[i]) << " ";
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 10815๋ฒ - ์ซ์์นด๋ (0) | 2021.10.24 |
---|---|
[๋ฐฑ์ค,c++] 10814๋ฒ - ๋์ด์ ์ ๋ ฌ (0) | 2021.10.24 |
[๋ฐฑ์ค,c++] 10811๋ฒ - ๋ฐ๊ตฌ๋ ๋ค์ง๊ธฐ (0) | 2021.10.24 |
[๋ฐฑ์ค,c++] 10808๋ฒ - ์ํ๋ฒณ ๊ฐ์ (0) | 2021.10.23 |
[๋ฐฑ์ค,c++] 10807๋ฒ - ๊ฐ์ ์ธ๊ธฐ (0) | 2021.10.23 |
[๋ฐฑ์ค,c++] 10804๋ฒ - ์นด๋ ์ญ๋ฐฐ์น (0) | 2021.10.23 |
๋๊ธ