Submission #4576

#TimeUsernameProblemLanguageResultExecution timeMemory
4576KH_Lee0415그릇 (KOI13_bowl)C++98
16 / 16
0 ms1088 KiB
#include<stdio.h> #include<string.h> char A[60]; int main(){ int i, a, sum=10; scanf("%s", A); a=strlen(A); for(i=1; i<a; i++){ if(A[i-1]==A[i]) sum+=5; else sum+=10; } printf("%d", sum); 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...