Submission #7733

#TimeUsernameProblemLanguageResultExecution timeMemory
7733gs14004그릇 (KOI13_bowl)C++98
16 / 16
0 ms1088 KiB
#include <stdio.h> int main(){ char a[50]={}; scanf("%s",a); int i=1; int result=10; while(a[i]!=0){ if(a[i-1]==a[i]) result+=5; else result+=10; i++; } printf("%d",result); }
#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...