Submission #1838

#TimeUsernameProblemLanguageResultExecution timeMemory
1838alephnull그릇 (KOI13_bowl)C++98
16 / 16
0 ms884 KiB
#include <cstdio> #include <cstring> int main(){ char str[100]; scanf("%s",str); int len=strlen(str); int ans=10; for(int i=1;i<len;i++){ if(str[i-1]==str[i])ans+=5; else ans+=10; } printf("%d",ans); }
#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...