Submission #1793738
Source Code Expand
#include<stdio.h> #include<string.h> int main() { int i,j,l; j=0; char str1[100],str2[100]; gets(str1); l=strlen(str1); for(i=0;i<l;i+=2) { str2[j]=str1[i]; j++; } str2[j]='\0'; puts(str2); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - OddString |
User | vjudge2 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 324 Byte |
Status | RE |
Exec Time | 97 ms |
Memory | 128 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:8:7: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] gets(str1); ^ /tmp/cc9toOUR.o: In function `main': Main.c:(.text.startup+0x22): warning: the `gets' function is dangerous and should not be used.
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt |
All | 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | AC | 0 ms | 128 KB |
0_001.txt | AC | 1 ms | 128 KB |
0_002.txt | AC | 0 ms | 128 KB |
0_003.txt | AC | 0 ms | 128 KB |
1_004.txt | AC | 0 ms | 128 KB |
1_005.txt | AC | 0 ms | 128 KB |
1_006.txt | RE | 97 ms | 128 KB |
1_007.txt | RE | 95 ms | 128 KB |