Submission #3451263
Source Code Expand
#include <stdio.h> #include<math.h> int main() { long int x[26]={0},y,z,sum,i=0,k; char a[100000]; gets(a); k=0; for(i=0;i<strlen(a);i++) { if(x[a[i]-97]==0) { x[a[i]-97]=1; k++; } } if(k==26) { printf("None"); }else{ for(i=0;i<26;i++) { if(x[i]==0) { printf("%c",i+97); break; } } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Not Found |
User | patilc125 |
Language | C (GCC 5.4.1) |
Score | 200 |
Code Size | 477 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:8:2: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] gets(a); ^ ./Main.c:10:12: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] for(i=0;i<strlen(a);i++) ^ ./Main.c:10:12: warning: incompatible implicit declaration of built-in function ‘strlen’ ./Main.c:10:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ ./Main.c:26:21: warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%c",i+97); ^ /tmp/ccuCzafB.o: In function `main': Main.c:(.text.startup+0x36): warning: the `gets' function is dangerous and should not be used.
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 1 ms | 128 KB |
2.txt | AC | 0 ms | 128 KB |
3.txt | AC | 1 ms | 128 KB |
4.txt | AC | 1 ms | 256 KB |
5.txt | AC | 1 ms | 256 KB |
6.txt | AC | 1 ms | 256 KB |
7.txt | AC | 1 ms | 256 KB |
8.txt | AC | 1 ms | 256 KB |
9.txt | AC | 1 ms | 256 KB |
sample1.txt | AC | 0 ms | 128 KB |
sample2.txt | AC | 0 ms | 128 KB |
sample3.txt | AC | 0 ms | 128 KB |