# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
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... |