Submission #1109

# Submission time Handle Problem Language Result Execution time Memory
1109 2013-06-25T11:00:11 Z skstmdvlf 그릇 (KOI13_bowl) C++
16 / 16
0 ms 884 KB
#include<stdio.h>
#include<string.h>
int main()
{
    char a[51];
    int i, hap=0, len;
    
    scanf("%s",a);
    
    len=strlen(a);
    
    if(len!=0) hap=10; //대회해서 했던대로 하겠다!
    
    for(i=1;i<len;i++)
    {
        if(a[i]==a[i-1]) hap=hap+5;
        else hap=hap+10;
    }
    
    printf("%d",hap);
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
4 Correct 0 ms 884 KB Output is correct
5 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
4 Correct 0 ms 884 KB Output is correct
5 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
4 Correct 0 ms 884 KB Output is correct
5 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
4 Correct 0 ms 884 KB Output is correct
5 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
4 Correct 0 ms 884 KB Output is correct
5 Correct 0 ms 884 KB Output is correct