Submission #1687

#TimeUsernameProblemLanguageResultExecution timeMemory
1687gs13105그릇 (KOI13_bowl)C++98
16 / 16
0 ms884 KiB
#include <stdio.h> #include <string.h> char arr[51]; int main() { char p; int r=10,len,i; scanf("%s",&arr); len=strlen(arr); p=arr[0]; for(i=1;i<len;i++) { if(arr[i]==p) r+=5; else { p=arr[i]; r+=10; } } printf("%d",r); 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...