Submission #4956

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