Submission #1077

#TimeUsernameProblemLanguageResultExecution timeMemory
1077tncks0121그릇 (KOI13_bowl)C++98
16 / 16
0 ms884 KiB
#include <stdio.h> FILE * in = stdin; FILE * out = stdout; int main(){ int i; char str[100]; int ans; fscanf(in, "%s", str); ans = 10; for (i=1; str[i]; i++){ if (str[i]==str[i-1]) ans += 5; else ans += 10; } fprintf(out, "%d", ans); 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...