Submission #1187

#TimeUsernameProblemLanguageResultExecution timeMemory
1187gs13068그릇 (KOI13_bowl)C++98
16 / 16
0 ms884 KiB
#include<cstdio> char str[51]; int main() { int i,ans=10; scanf("%s",str); for(i=1;str[i];i++) { if(str[i]==str[i-1])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...