Submission #5643

#TimeUsernameProblemLanguageResultExecution timeMemory
5643tncks0121그릇 (KOI13_bowl)C++98
16 / 16
0 ms1676 KiB
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <bits/stdc++.h> #include <memory.h> typedef long long ll; typedef unsigned long long llu; typedef double lf; typedef long double llf; typedef unsigned int uint; using namespace std; char S[55]; int res; int main() { scanf("%s", S); int n = strlen(S); res = 10; for(int i = 0; i+1 < n; i++) { if(S[i] == S[i+1]) res += 5; else res += 10; } printf("%d\n", res); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...