Submission #5306

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