08 2013 档案

摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 string sortString(string s) 7 { 8 for(int i=0; i=s[j])12 {13 char cmp=s[i];14 s[i]=s[j];15 s[j]=cmp;16 }17 }18 return s;19 }20 int main()21 {2... 阅读全文
posted @ 2013-08-28 11:11 JKXQJ
摘要:http://codeforces.com/problemset/problem/50/A#include#includeusing namespace std;int main(){int n,m,i;while(cin>>m>>n){if(n%2==0)cout<<m*n/2<<endl;elsecout<<m*(n/2)+m/2<<endl;}return 0;} 阅读全文
posted @ 2013-08-20 20:34 JKXQJ
摘要:http://codeforces.com/problemset/problem/118/A 1 #include 2 #include 3 #include 4 using namespace std; 5 string a; 6 queueb; 7 bool is_vowel(char aa) 8 { 9 if(aa=='a' || aa=='e' || aa=='i' || aa=='o' || aa=='u' ||aa=='y'||aa=='A' || aa=='E& 阅读全文
posted @ 2013-08-12 23:05 JKXQJ
摘要:http://codeforces.com/problemset/problem/71/A 1 #include 2 #include 3 using namespace std; 4 string a; 5 int main() 6 { 7 int n; 8 cin>>n; 9 for(int i=0;i>a;12 if(a.length()>10)13 cout<<a[0]<<a.length()-2<<a[a.length()-1]<<endl;14 else15 cout<<a<... 阅读全文
posted @ 2013-08-12 22:30 JKXQJ