第二场热身赛A(简单水题)
2012-10-06 16:52
169 查看
其实就是让你求出来,所输入的字符串中的大写字母,然后输出,,
自己的代码就不看了,丑死了,看标称:
好漂亮的代码,string是很好用的.
自己的代码就不看了,丑死了,看标称:
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <iostream> #include <ctype.h> #include <string> using namespace std; int main() { string str; cin>>str; for(int i=0;i<(str.size());i++) { if(isupper(str[i])) cout<<str[i]; } cout<<endl; return 0; }
好漂亮的代码,string是很好用的.
相关文章推荐
- HDU 4485(简单水题。。。)
- HDU 5135 Little Zu Chongzhi's Triangles(简单水题)
- poj1979 水题简单dfs
- POJ 2545+2591+2247+1338简单水题
- HDU 4278 Faulty Odometer 第37届ACM/ICPC天津赛区网络赛1001题 (简单水题)
- 2017 计蒜之道 初赛 第二场 B.百度的科学计算器(简单)
- hdoj 1229 还是A+B(简单水题,但是因为思维不够活跃,一开始做的很麻烦)
- 【水题】城堡问题(简单DFS)
- A strange lift HDU 1548 queue BFS 简单 水题
- hdu 1846 Brave Game (巴什博弈 最简单的博弈水题)
- 2017 计蒜之道 初赛 第二场 B.百度的科学计算器(简单)
- hdu 4715 Difference Between Primes 2013年ICPC热身赛A题 素数水题
- (水题)简单题
- HDU 1209 Clock(简单水题)
- Flying to the Mars HDU1800 map 简单水题
- ACM HDU 1234 开门人和关门人(简单水题)
- Pangram(简单水题)
- VJ水题——今年暑假不AC(简单贪心)
- 2017 计蒜之道 初赛 第二场 B.百度的科学计算器(简单)
- 2017 计蒜之道 初赛 第二场 B. 百度的科学计算器(简单)