Submission #76955853
Source Code Expand
Copy
#include <stdio.h>#include <string.h>char S[114514];int N;int main(void) {if (scanf("%114513s", S) != 1) return 1;if (scanf("%d", &N) != 1) return 1;S[strlen(S) - N] = '\0';puts(S + N);return 0;}
#include <stdio.h>
#include <string.h>
char S[114514];
int N;
int main(void) {
if (scanf("%114513s", S) != 1) return 1;
if (scanf("%d", &N) != 1) return 1;
S[strlen(S) - N] = '\0';
puts(S + N);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Chompers |
| User | mikecat |
| Language | C23 (GCC 14.2.0) |
| Score | 100 |
| Code Size | 226 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 1668 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt |
| All | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00-sample-01.txt | AC | 0 ms | 1568 KiB |
| 00-sample-02.txt | AC | 1 ms | 1588 KiB |
| 00-sample-03.txt | AC | 1 ms | 1616 KiB |
| 01-01.txt | AC | 1 ms | 1668 KiB |
| 01-02.txt | AC | 0 ms | 1652 KiB |
| 01-03.txt | AC | 0 ms | 1572 KiB |
| 01-04.txt | AC | 0 ms | 1620 KiB |
| 01-05.txt | AC | 0 ms | 1600 KiB |
| 01-06.txt | AC | 0 ms | 1588 KiB |
| 01-07.txt | AC | 0 ms | 1668 KiB |
| 01-08.txt | AC | 0 ms | 1572 KiB |
| 01-09.txt | AC | 0 ms | 1616 KiB |