eolymp
bolt
Попробуйте наш новый интерфейс для отправки задач
Задачи

Подсчитать буквы в тексте

опубликовано 09.09.2021, 09:57:43

нелегко)

опубликовано 21.01.2024, 11:50:14

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:16

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:18

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:18

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:28

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:29

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:30

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }

опубликовано 21.01.2024, 11:50:31

include <bits/stdc++.h>

using namespace std; int main() { char s; int say=0; vector<int>herf(26,0); while(cin.get(s)){ if(isalpha(s)){ herf[tolower(s)-'a']++; } } for(int i:herf){ cout<<i; } }