Submission #88645

#TimeUsernameProblemLanguageResultExecution timeMemory
88645BadralEnergetic turtle (IZhO11_turtle)C++17
0 / 100
13 ms380 KiB
#include <bits/stdc++.h> using namespace std; int k = 0; int n; int main() { string st; cin >>st; for(int i = 0; i < (int)st.size(); i++) { if(st[i] == 'T'){ k++; } } cin >>n; cout<<min(st.size()-k+n,st.size()-n+k); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...