제출 #1246536

#제출 시각아이디문제언어결과실행 시간메모리
1246536spirittSifra (COCI21_sifra)C++20
25 / 50
1 ms328 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 timeMemoryGrader output
Fetching results...