# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1246536 | spiritt | Sifra (COCI21_sifra) | C++20 | 1 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
string secret;
int ans = 0;
cin >> secret;
for (int i = 0; i < secret.length(); ) {
if (isdigit(secret[i])) {
while (i < secret.length() && isdigit(secret[i])) {
i++;
}
ans++;
} else {
i++;
}
}
cout << ans << endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |