Submission #4163

#TimeUsernameProblemLanguageResultExecution timeMemory
4163dbfud그릇 (KOI13_bowl)C++98
16 / 16
0 ms1672 KiB
#include <iostream> #include <string> using namespace std; int main() { string bowl; cin >> bowl; int length = 10; for( int i = 0; i < bowl.size()-1 ; i++ ) { if ( bowl[i] == bowl[i+1] ) length += 5; else { length += 10 ; } } cout << length ; 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...