Submission #77098860
Source Code Expand
Copy
#include <stdio.h>int main(void) {int is_first = 1;int c;while ((c = getchar()) != EOF) {int id = c - 'a';if (0 <= id && id < 26) {if (is_first) {printf("%d", (id - (id >= 18) - (id >= 25)) / 3 + 2);}is_first = 0;} else {is_first = 1;}}putchar('\n');return 0;}
#include <stdio.h>
int main(void) {
int is_first = 1;
int c;
while ((c = getchar()) != EOF) {
int id = c - 'a';
if (0 <= id && id < 26) {
if (is_first) {
printf("%d", (id - (id >= 18) - (id >= 25)) / 3 + 2);
}
is_first = 0;
} else {
is_first = 1;
}
}
putchar('\n');
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 459 |
| User | mikecat |
| Language | C23 (GCC 14.2.0) |
| Score | 200 |
| Code Size | 328 Byte |
| Status | AC |
| Exec Time | 0 ms |
| Memory | 1616 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt |
| All | example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.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, random_10.txt, random_11.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 0 ms | 1428 KiB |
| example_01.txt | AC | 0 ms | 1552 KiB |
| hand_00.txt | AC | 0 ms | 1480 KiB |
| hand_01.txt | AC | 0 ms | 1508 KiB |
| hand_02.txt | AC | 0 ms | 1616 KiB |
| hand_03.txt | AC | 0 ms | 1532 KiB |
| hand_04.txt | AC | 0 ms | 1504 KiB |
| hand_05.txt | AC | 0 ms | 1472 KiB |
| random_00.txt | AC | 0 ms | 1600 KiB |
| random_01.txt | AC | 0 ms | 1532 KiB |
| random_02.txt | AC | 0 ms | 1592 KiB |
| random_03.txt | AC | 0 ms | 1472 KiB |
| random_04.txt | AC | 0 ms | 1472 KiB |
| random_05.txt | AC | 0 ms | 1520 KiB |
| random_06.txt | AC | 0 ms | 1468 KiB |
| random_07.txt | AC | 0 ms | 1616 KiB |
| random_08.txt | AC | 0 ms | 1488 KiB |
| random_09.txt | AC | 0 ms | 1504 KiB |
| random_10.txt | AC | 0 ms | 1520 KiB |
| random_11.txt | AC | 0 ms | 1532 KiB |