Search found 1 match

by jesin_21
Fri Sep 02, 2005 6:31 am
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 17298

10008

int main() { int n; long long int s[27]; char c; int i,j; while(cin>>n) { i=0; j=0; for(j=0;j<27;j++) s[j]=0; while(i<n) { c=getchar(); if(c=='\n') i++; else { if(c>='A'&&c<='Z') { j = c - 65; s[j] = s[j] + 1; } if(c>='a'&& c<='z') { j = c - 97; s[j] = s[j] + 1; } } } int max,k,temp; char ch; for(j...

Go to advanced search