Submission #509729
Source Code Expand
#include <stdio.h>
int main()
{
char unko[101];
int i;
gets(unko);
for (i = 0; i < 101; i++)
{
if (unko[i] == '\0') break;
}
unko[i - 1] = unko[i - 1] + 1;
printf("%s\n", unko);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - CODE FESTIVAL 2015 |
| User | shoou0000 |
| Language | C (GCC 4.9.2) |
| Score | 100 |
| Code Size | 220 Byte |
| Status | AC |
| Exec Time | 24 ms |
| Memory | 792 KiB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:7:2: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result [-Wunused-result] gets(unko); ^
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 24 ms | 784 KiB |
| 01-02.txt | AC | 22 ms | 696 KiB |
| 01-03.txt | AC | 23 ms | 792 KiB |
| 01-04.txt | AC | 24 ms | 648 KiB |
| 01-05.txt | AC | 24 ms | 648 KiB |
| sample-01.txt | AC | 24 ms | 792 KiB |
| sample-02.txt | AC | 24 ms | 648 KiB |