- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
除了DP和搜索的题解(Except for the DP and the search)
除了DP和搜索的题解(Except for the DP and the search)
1000年
poj2121模拟
把相应的数字存起来,按照模拟打印出相应的数字
# include stdio . h
# include stdlib.h
# include string.h
arr char[10000];
即int[10000];
char crr[10000][100];
int国旗;
char drr[33][15]= {“0”、“1”、“2”,“3”,“4”、“5”、“6”,
“七”、“八”,“九”,“十”、“十一”、“12”,“十三”,
“14”、“十五”、“16”,“十七岁”、“十八”,
“十九”、“20”,“三十”、“四十”,“五十”,“60”,“七十”,
“八十”、“九十”、“百”、“千”、“百万”、“负面”};
int犯错[32]= { 0,1,2,3,4,5,6,7,8,9,10,11,12日,13日,14日,15日,16日,17日,18日,19日,20日,30岁,40岁,50岁,60岁,70,80,90100,1000,1000000 };
int main()
{
而(得到(arr))
{
如果(strcmp(加勒比海盗”、“)= = 0){打破;}
/ / memset(crr 0 sizeof(crr));
国旗= 0;
int k;
k = 1;
int A = strlen(arr);
即[0]= 0;
(int i = 0;我;我+ +)
{
如果(arr[我]= = )
即(k + +)=我;
}
for(int i = 0;我 k;我+ +)
即sscanf(arr +[我],“% s”,退休研究中心[我]);
如果(strcmp(crr[0],drr[31])= = 0)
标志= 1;
int t = 0;
如果(国旗)
{
/ / printf( 0000 \ n );
for(int j = 0; k;j + +)
{
for(int i = 0;我 32,我+ +)
{
如果(strcmp(crr[j],drr[我])= = 0)
{
即(t + +)=呃(我);
}
}
}
}
其他的
{
/ / printf( 1111 \ n );
for(int j = 1;j k;j + +)
{
(int i = 1;我 32,我+ +)
{
如果(strcmp(crr[j],drr[我])= = 0)
{
即(t + +)=呃(我);
}
}
}
}
int和= 0;
int存在= 0;
int qianwei = 0;
int baiwanwei = 0;
for(int i = 0;我 t;我+ +)
{
如果(brr[我]= = 100)
{
存在=总和* 100;
金额= 0;
}
else if(brr[我]= = 1000)
{
qianwei =(存在+金额)* 1000;
存在= 0;
金额= 0;
}
else if(brr[我]= = 1000000)
{
baiwanwei =(qianwei + +和存在)* 1000000;
存在= 0;
qianwei = 0;
金额= 0;
}
其他的
{
即总和+ =[我];
}
}
如果(国旗)
{
printf( % d \ n”,(和+ + qianwei + baiwanwei存在)* 1);
}
其他的
{
printf( % d \ n”,和+ + qianwei + baiwanwei存在);
}
}
返回0;
}
1001年
zoj3622打表找规律
大家多半会忘记了这125个数
# include stdio . h
# include string.h
# include stdlib.h
# include 算法
# include iostream
# include math.h
使用名称空间性病;
长长的[100]= {
1、2、5、10、20、25,50100年,
125200250500、1000、
1250,2000,2500,1250,2000,
12500,20000,25000,12500,20000,
125000,200000,250000,500000,125000,
1250000,1250000,1250000,5000000,1250000,1250000050000000
125000000,125000000,125000000,500000000,125000000,
1250000000,1250000000,1250000000,5000000000,125
您可能关注的文档
- 2011年12月六级过关必备高频词汇(December, 2011, pass the requisite high frequency vocabulary).doc
- 2011年六年级数学应用题大全六年级数学应用题110070(The sixth grade mathematics application question of the sixth grade in 2011 should be 110070).doc
- 2011年8月水泥培训知识(August 2011 cement training knowledge).doc
- 2011年普通高等学校招生全国统一考试(浙江卷)(2011 national unified examination (zhejiang volume)).doc
- 2011年申论十大问题(The top 10 questions of 2011).doc
- 2011年辽宁省大连市长海高中高二下学期地理测试题(In 2011, the geography test of gaohai senior high school, changhai high school, dalian city, liaoning province).doc
- 2011年重庆市涪陵区公交线路双改最新站点路线(In 2011, the bus line in fuling district in chongqing municipality changed the route of the latest site).doc
- 2011年青浦区高三化学一模试卷(附答案)(2011 high 3 chemistry paper (with answers) in qingpu district).doc
- 2011年高考地理-热点问题1(2011 national college entrance examination geography - hot spot problem 1).doc
- 2011年高考地理复习必须知晓的九大锦囊(In 2011, the geography review of the college entrance examination must know the nine).doc
- 陈省身)(Chern)).doc
- 除衣服上的黑点(Except for the black spots on the clothes).doc
- 除斥期间(In addition to the period).doc
- 雾霾天气的危害与间质性肺炎的治疗方法有什么(What is the harm of haze weather and the treatment method of interstitial pneumonia).doc
- 餐饮职业经理人考试复习资料(Review materials for the catering professional managers).doc
- 餐饮业规划(Catering planning).doc
- 高一化学 简单分类法及其应用(High chemical simple classification and its application).doc
- 高一下学期化学练习一【永久免费】(Chemistry exercise 1 (permanent free)).doc
- 高一化学2(必修)第1章(原子结构与元素周期律)(Chemistry 2 (compulsory) chapter 1 (atomic structure and periodic law)).doc
- 高一化学离子方程式1(High chemical ion equation 1).doc
文档评论(0)