cses

cses solutions in pure c
git clone git://git.superpozycja.net/cses
log | files | refs

s.c (296B)


      1 #include <stdio.h>
      2 #include <stdlib.h>
      3 #include <string.h>
      4 #include <stdint.h>
      5 
      6 int solve()
      7 {
      8 	char a[26] = {0};
      9 	char s[1000001];
     10 	char c;
     11 	int i;
     12 	int j;
     13 
     14 	scanf("%s", s);
     15 
     16 	i = 0;
     17 
     18 	while ((c = s[i++]) != '\0')
     19 		a[c - 'A']++;
     20 
     21 	return 0;
     22 }
     23 
     24 int main()
     25 {
     26 	int t = 1;
     27 	while (t--)
     28 		solve();
     29 }