Submission #64466056
Source Code Expand
Copy
#include <stdio.h>#include <string.h>char S[114514];int main(void) {int i, ans = 0;if (scanf("%114512s", S + 1) != 1) return 1;S[0] = 'o';S[strlen(S)] = 'i';for (i = 1; S[i] != '\0'; i++) {ans += S[i] == S[i - 1];}printf("%d\n", ans);return 0;}
#include <stdio.h> #include <string.h> char S[114514]; int main(void) { int i, ans = 0; if (scanf("%114512s", S + 1) != 1) return 1; S[0] = 'o'; S[strlen(S)] = 'i'; for (i = 1; S[i] != '\0'; i++) { ans += S[i] == S[i - 1]; } printf("%d\n", ans); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Ticket Gate Log |
User | mikecat |
Language | C (gcc 12.2.0) |
Score | 250 |
Code Size | 286 Byte |
Status | AC |
Exec Time | 0 ms |
Memory | 1744 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 250 / 250 | ||||
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_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 0 ms | 1732 KB |
00_sample_02.txt | AC | 0 ms | 1636 KB |
00_sample_03.txt | AC | 0 ms | 1744 KB |
01_random_01.txt | AC | 0 ms | 1564 KB |
01_random_02.txt | AC | 0 ms | 1728 KB |
01_random_03.txt | AC | 0 ms | 1600 KB |
01_random_04.txt | AC | 0 ms | 1616 KB |
01_random_05.txt | AC | 0 ms | 1732 KB |
01_random_06.txt | AC | 0 ms | 1652 KB |
01_random_07.txt | AC | 0 ms | 1732 KB |
01_random_08.txt | AC | 0 ms | 1620 KB |
01_random_09.txt | AC | 0 ms | 1584 KB |
01_random_10.txt | AC | 0 ms | 1656 KB |
02_handmade_01.txt | AC | 0 ms | 1644 KB |
02_handmade_02.txt | AC | 0 ms | 1568 KB |
02_handmade_03.txt | AC | 0 ms | 1628 KB |
02_handmade_04.txt | AC | 0 ms | 1572 KB |