Submission #3153

#TimeUsernameProblemLanguageResultExecution timeMemory
3153chan492811그릇 (KOI13_bowl)C++98
16 / 16
0 ms1672 KiB
#include <iostream> #include <cstdio> using namespace std; char q[51],prev,next; int sum; int main() { int i; scanf("%s",q); sum=10; i=0; while(q[i+1]!=0) { prev=q[i]; next=q[i+1]; if(prev==next)sum+=5; else sum+=10; i++; } printf("%d",sum); 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...