General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
36019875 Contestant:
ProgrammatorZihad
946C - 6 GNU C11 Hacked 15 ms 1916 KB 2018-03-06 19:51:28 2018-03-06 19:51:28
 
 
→ Source
#include <stdio.h>
#include <string.h>

int main()
{
    int letter=0,i,j,len;
    char s2[]="abcdefghijklmnopqrstuvwxyz",s[100001];
    scanf("%s",s);
    len=strlen(s);
    for(i=0,j=97;i<len;i++)
    {
        if(s[i]<=j)
        {
            letter++;
            j++;
            if(letter==26)
            {
                break;
            }
        }
    }
    if(letter==26)
        printf("%s",s);
    else
        printf("-1");
    return 0;
}
 
 
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details