Submission #75713094


Source Code Expand

Copy
#include <stdio.h>
#include <string.h>
#include <limits.h>
char S[114514];
int cnt[UCHAR_MAX + 1];
int main(void) {
int i, max = 0;
if (fgets(S, sizeof(S), stdin) == NULL) return 1;
strtok(S, "\n");
for (i = 0; S[i] != '\0'; i++) {
cnt[(unsigned char)S[i]]++;
}
for (i = 0; i <= UCHAR_MAX; i++) {
if (cnt[i] > max) max = cnt[i];
}
for (i = 0; S[i] != '\0'; i++) {
if (cnt[(unsigned char)S[i]] != max) putchar(S[i]);
}
putchar('\n');
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <stdio.h>
#include <string.h>
#include <limits.h>

char S[114514];

int cnt[UCHAR_MAX + 1];

int main(void) {
	int i, max = 0;
	if (fgets(S, sizeof(S), stdin) == NULL) return 1;
	strtok(S, "\n");
	for (i = 0; S[i] != '\0'; i++) {
		cnt[(unsigned char)S[i]]++;
	}
	for (i = 0; i <= UCHAR_MAX; i++) {
		if (cnt[i] > max) max = cnt[i];
	}
	for (i = 0; S[i] != '\0'; i++) {
		if (cnt[(unsigned char)S[i]] != max) putchar(S[i]);
	}
	putchar('\n');
	return 0;
}

Submission Info

Submission Time
Task B - mpp
User mikecat
Language C23 (GCC 14.2.0)
Score 200
Code Size 489 Byte
Status AC
Exec Time 0 ms
Memory 1616 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 20
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 0 ms 1476 KiB
00_sample_01.txt AC 0 ms 1488 KiB
00_sample_02.txt AC 0 ms 1488 KiB
01_test_00.txt AC 0 ms 1616 KiB
01_test_01.txt AC 0 ms 1476 KiB
01_test_02.txt AC 0 ms 1616 KiB
01_test_03.txt AC 0 ms 1480 KiB
01_test_04.txt AC 0 ms 1412 KiB
01_test_05.txt AC 0 ms 1492 KiB
01_test_06.txt AC 0 ms 1556 KiB
01_test_07.txt AC 0 ms 1484 KiB
01_test_08.txt AC 0 ms 1416 KiB
01_test_09.txt AC 0 ms 1416 KiB
01_test_10.txt AC 0 ms 1616 KiB
01_test_11.txt AC 0 ms 1432 KiB
01_test_12.txt AC 0 ms 1480 KiB
01_test_13.txt AC 0 ms 1452 KiB
01_test_14.txt AC 0 ms 1424 KiB
01_test_15.txt AC 0 ms 1540 KiB
01_test_16.txt AC 0 ms 1480 KiB


2026-05-11 (Mon)
07:02:35 +09:00