2013年3月13日

摘要: A题 看懂题意之后 简单模拟 1 #include<iostream> 2 #include<stdio.h> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 7 int f[100005]; 8 9 int main( )10 {11 int x,y,w,t,x1,y1,count;12 scanf("%d%d",&x1,&y1);13 x = y = w = 0,t = 1,count = 0;14 while( true 阅读全文
posted @ 2013-03-13 22:37 浪舟 阅读(168) 评论(0) 推荐(0)
摘要: A 题 水题 将字符串的第一个字母转换成大写#include<iostream>#include<stdio.h>#include<cstring>using namespace std; char str[1002];int main( ){ while( scanf("%s",&str) != EOF ) { if( (str[0] - 'A' ) > 26 ) str[0] = (str[0] - '0') - 32 +'0'; printf("%s\n&quo 阅读全文
posted @ 2013-03-13 22:01 浪舟 阅读(249) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<stdio.h> 3 #include<cstring> 4 #include<string> 5 #include<bitset> 6 using namespace std; 7 8 int main( ) 9 {10 string str = "10101010"; 11 bitset<10>cha(str,str.size() - 5); // 将最后几个元素赋值进去;12 cout<<cha<<endl;1 阅读全文
posted @ 2013-03-13 20:05 浪舟 阅读(154) 评论(0) 推荐(0)

导航