- 博客(11)
- 问答 (1)
- 收藏
- 关注
原创 1014. 福尔摩斯的约会 (20):阅读能力也需要提高···
#include#include#include#include//isalpha()#includeusing namespace std;#define Size 60int main(){ string S1, S2, S3, S4; string Day; int H, M; mapM1; ma
2015-06-25 15:44:55 407
原创 1009. 说反话 (20)
基础字符串处理问题,代码思路清晰,一开始居然没思路···#include#include#includeusing namespace std;#define Size 80int 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#includeusing 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#includeusing namespace std;#define Size 10000int 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#includeusing 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#includeuisng 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#includeusing 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#includeusing namespace std;#define INFINITY 21474843649#define MaxSize 500int Map[MaxSize][MaxSize]; // 用邻接矩阵表示带权图int dist[MaxSize];
2015-06-06 11:11:16 351
原创 1002. A+B for Polynomials (25)
一开始提交好几次 都是 前几个测试点 正确后来 知道 忘了考虑 相加后 系数为0的情况 时 更新 CX(计数器)的值··#include#include#includeusing namespace std;int main(){ double ans[1001]; int Expo; double Coef; int K; while(
2015-06-05 00:18:03 310
原创 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#includeusing namespace std;#define Max 1000000int main(){ int a, b; vectorV; stackStk;//用来存放带有","的输出序列
2015-06-03 16:15:17 406
空空如也
JAVA vector 相关,看不懂这一行代码
2017-03-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人