Submission #2634

#TimeUsernameProblemLanguageResultExecution timeMemory
2634kipa00그릇 (KOI13_bowl)C++98
16 / 16
0 ms1088 KiB
#include <cstdio> int main() { char c = 0, str[500], *str2; int sum = 0; scanf("%s", str); str2 = str; while (*str2) { if (c == *str2) { sum += 5; } else { sum += 10; } c = *str2++; } printf("%d\n", 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...