摘要:
#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string word; cin>>word; word[0]=toupper(word[0]); cout<<word 阅读全文
摘要:
#include <iostream> #include <string> #include <algorithm> using namespace std; #define maxSize 105 int main() { string exp; int digit[maxSize]; int l 阅读全文
摘要:
#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string str1; string str2; int length; while(cin>>str1>>str2) 阅读全文
摘要:
#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string str1; string str2; int length; while(cin>>str1>>str2) 阅读全文
摘要:
#include <iostream> #include <string> using namespace std; int main() { int n, plus, sub; string ope; while(cin>>n) { plus=sub=0; while(n--) { cin>>op 阅读全文
摘要:
#include <iostream> using namespace std; int main() { int m, n; cin>>m>>n; cout<<(m*n)/2<<endl; return 0; } 阅读全文
摘要:
#include <iostream> using namespace std; #define maxSize 10 int main() { int views[maxSize]; int n, res; while(cin>>n) { res=0; for(int i=0; i<n; ++i) 阅读全文
摘要:
#include <iostream> #include <cctype> #include <string> using namespace std; int main() { string str; cin>>str; int length; length=str.size(); for(int 阅读全文
摘要:
#include <iostream> using namespace std; #define maxSize 60 int main() { int score[maxSize]; int n, k, res; cin>>n>>k; res=0; for(int i=0; i<n; ++i) c 阅读全文
摘要:
#include <iostream> #include <string> using namespace std; int main() { string word; int length, n; cin>>n; for(int i=0; i<n; ++i) { cin>>word; length 阅读全文