# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
88644 | 2018-12-07T08:29:51 Z | Badral | Energetic turtle (IZhO11_turtle) | C++17 | 3 ms | 504 KB |
#include <bits/stdc++.h> using namespace std; int k = 0; int n; int main() { string st; cin >>st; for(int i = 0; i < st.size(); i++) { if(st[i] == 'T'){ k++; } } cin >>n; cout<<min(st.size()-k+n,st.size()-n+k); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 256 KB | Output isn't correct |
2 | Incorrect | 2 ms | 256 KB | Output isn't correct |
3 | Incorrect | 2 ms | 348 KB | Output isn't correct |
4 | Incorrect | 2 ms | 256 KB | Output isn't correct |
5 | Incorrect | 3 ms | 376 KB | Output isn't correct |
6 | Incorrect | 0 ms | 256 KB | Output isn't correct |
7 | Incorrect | 2 ms | 256 KB | Output isn't correct |
8 | Incorrect | 2 ms | 256 KB | Output isn't correct |
9 | Incorrect | 3 ms | 256 KB | Output isn't correct |
10 | Incorrect | 2 ms | 252 KB | Output isn't correct |
11 | Incorrect | 2 ms | 256 KB | Output isn't correct |
12 | Incorrect | 2 ms | 256 KB | Output isn't correct |
13 | Incorrect | 2 ms | 376 KB | Output isn't correct |
14 | Incorrect | 2 ms | 256 KB | Output isn't correct |
15 | Incorrect | 2 ms | 256 KB | Output isn't correct |
16 | Incorrect | 3 ms | 384 KB | Output isn't correct |
17 | Incorrect | 1 ms | 504 KB | Output isn't correct |
18 | Incorrect | 2 ms | 256 KB | Output isn't correct |
19 | Incorrect | 3 ms | 256 KB | Output isn't correct |
20 | Incorrect | 2 ms | 256 KB | Output isn't correct |