Submission #4605

#TimeUsernameProblemLanguageResultExecution timeMemory
4605Namnamseo그릇 (KOI13_bowl)C++98
16 / 16
0 ms1088 KiB
#include <stdio.h> int main() { char bef_state=-1; char buf[51]; int h=0; scanf("%s",buf); int i; for(i=0;;i++) { if(buf[i]==0) break; else { if(bef_state==buf[i]) { h+=5; } else { bef_state=buf[i]; h+=10; } } } printf("%d",h); 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...