自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

That's all

在线日记

  • 博客(11)
  • 问答 (1)
  • 收藏
  • 关注

原创 1014. 福尔摩斯的约会 (20):阅读能力也需要提高···

#include #include #include #include//isalpha() #include using namespace std; #define Size 60 int main() { string S1, S2, S3, S4; string Day; int H, M; mapM1; ma

2015-06-25 15:44:55 407

原创 1009. 说反话 (20)

基础字符串处理问题,代码思路清晰,一开始居然没思路···#include #include #include using namespace std; #define Size 80 int main() { char S1[Size+1], S2[Size+1][Size+1]; gets(S1); int StrLen, i, j, k; StrLen = s

2015-06-24 20:50:04 311

原创 1008. 数组元素循环右移问题 (20):找自信···

做Advanced卡住了···转刷个Basic #include #include using namespace std; int main() { int N, M; int * Arr; while( cin>>N>>M ) { M= M%N; Arr = new int[N]; for( int i=N-1;

2015-06-22 23:46:20 291

转载 1078. Hashing (25):二次探测法哈希查找

#include #include using namespace std; #define Size 10000 int Prime( int x ) { int NotPrime = 0; if( x==1||x==0 ) return 2; if( x==2 || x==3 ) return x; for( int i=

2015-06-18 17:01:23 977

转载 1019. General Palindromic Number (20):郁闷了,深呼吸,做道题···

注意 边界条件 当N==0时 #include #include using namespace std; int main() { int N, b; vectorV; while( cin>>N>>b ) { V.clear(); do {

2015-06-13 16:13:33 323

转载 1011. World Cup Betting (20): 英语阅读能力亟待提高···

#include #include uisng namespace std; int main() { char a[3]={'W', 'T', 'L'}; char b[3]; double bet; double temp; double ans=1; for( int i=0; i<3; i++ ) {

2015-06-10 22:40:44 396

原创 1005. Spell It Right (20)

#include #include #include #include using namespace std; int main() { mapM; M[1]="one"; M[2]="two"; M[3]="three"; M[4]="four"; M[5]="five"; M[6]="six"; M[7]="seven"; M[8]="eight"

2015-06-07 08:23:28 311

转载 1003. Emergency (25):简单最短路径问题

#include #include using namespace std; #define INFINITY 21474843649 #define MaxSize 500 int Map[MaxSize][MaxSize]; // 用邻接矩阵表示带权图 int dist[MaxSize];

2015-06-06 11:11:16 351

原创 1002. A+B for Polynomials (25)

一开始提交好几次 都是 前几个测试点 正确 后来 知道 忘了考虑 相加后 系数为0的情况 时 更新 CX(计数器)的值·· #include #include #include using namespace std; int main() { double ans[1001]; int Expo; double Coef; int K; while(

2015-06-05 00:18:03 309

原创 1024. 科学计数法 (20)||1073. Scientific Notation (20):string类方法substr() 以及 stringstream知识

stringstream用法这里 substr()方法   这里 思路来源这里 #include #include #include // !#$%@#@!%!#@$@! using namespace std; int main() { string s; stringstream stream; int n; cin>>s; //string:

2015-06-04 11:15:55 539

原创 1001. A+B Format (20):vector stack 简单运用

提交两次···A 忘了测试 0 0 情况··· 依旧是考虑不全,还没有养成严谨的测试-调试习惯。 #include #include #include #include using namespace std; #define Max 1000000 int main() { int a, b; vectorV; stackStk;//用来存放带有","的输出序列

2015-06-03 16:15:17 406

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除