fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. string szyfr,suma;
  4. int y,x;
  5. int asci[256];
  6. int main()
  7. {
  8. for(int a=0;a<=256;a++) asci[a]=0;
  9. while(getline(cin,szyfr))
  10. {
  11. y=szyfr.length();
  12. suma=suma+szyfr;
  13. x=suma.length();
  14. asci[10]++,x++;
  15. }
  16. for(int c=0;c<=x-1;c++) asci[suma[c]]++;
  17. for(int b=1;b<=255;b++) if(b<=255&&asci[b]>=1) cout<<b<<" "<<asci[b]<<endl;
  18. return 0;
  19. }
Success #stdin #stdout 0s 15240KB
stdin
753377 2007-03-31 18:03:10 Przecięcie w Zbiorze Odcinków	internal error 0.00 0k C++
753059 2007-03-31 15:51:07 Przecięcie w Zbiorze Odcinków	wrong answer 0.25 5.6M C++
stdout
9 2
10 2
32 20
43 4
45 4
46 3
48 15
49 6
50 3
51 8
53 7
54 1
55 7
56 1
57 1
58 4
67 2
77 1
79 2
80 2
90 2
97 2
98 2
99 6
100 2
101 9
103 1
105 9
107 3
108 1
110 6
111 4
114 10
115 1
116 1
119 6
122 4