Submission #1109

#TimeUsernameProblemLanguageResultExecution timeMemory
1109skstmdvlf그릇 (KOI13_bowl)C++98
16 / 16
0 ms884 KiB
#include<stdio.h> #include<string.h> int main() { char a[51]; int i, hap=0, len; scanf("%s",a); len=strlen(a); if(len!=0) hap=10; //대회해서 했던대로 하겠다! for(i=1;i<len;i++) { if(a[i]==a[i-1]) hap=hap+5; else hap=hap+10; } printf("%d",hap); 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...