Submission #21076678
Source Code Expand
#include <stdio.h>
int main(void) {
char X[512];
scanf("%s", &X[0]);
for(int i = 0; ; i++) {
switch((char)X[i]) {
case 0x00:
case '\n':
case '.':
printf("\n");
return 0;
default:
printf("%c", X[i]);
break;
}
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Round Down |
| User | Meguru2238 |
| Language | C (GCC 9.2.1) |
| Score | 200 |
| Code Size | 396 Byte |
| Status | AC |
| Exec Time | 3 ms |
| Memory | 1664 KiB |
Compile Error
./Main.c: In function ‘main’:
./Main.c:6:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%s", &X[0]);
| ^~~~~~~~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | handmade_00.txt, handmade_01.txt, handmade_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| handmade_00.txt | AC | 2 ms | 1548 KiB |
| handmade_01.txt | AC | 1 ms | 1588 KiB |
| handmade_02.txt | AC | 1 ms | 1600 KiB |
| random_00.txt | AC | 1 ms | 1608 KiB |
| random_01.txt | AC | 1 ms | 1548 KiB |
| random_02.txt | AC | 1 ms | 1620 KiB |
| random_03.txt | AC | 2 ms | 1548 KiB |
| random_04.txt | AC | 2 ms | 1664 KiB |
| random_05.txt | AC | 1 ms | 1500 KiB |
| random_06.txt | AC | 3 ms | 1564 KiB |
| random_07.txt | AC | 1 ms | 1648 KiB |
| random_08.txt | AC | 1 ms | 1580 KiB |
| random_09.txt | AC | 1 ms | 1644 KiB |
| sample_01.txt | AC | 1 ms | 1552 KiB |
| sample_02.txt | AC | 1 ms | 1644 KiB |
| sample_03.txt | AC | 1 ms | 1588 KiB |