france

https://github.com/francecil

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年8月7日

摘要: B -Football GoalTime Limit:500MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1874DescriptionUnlike most students of the M... 阅读全文
posted @ 2014-08-07 19:26 france 阅读(324) 评论(0) 推荐(0)

摘要: acm 的题目经常要求输出最后面一位不能有空格;用if语句显得代码难看;实现如下: int a[5]={1,2,3,4,5}; for(int i=0;i<=4;i++) printf("%d%c",a[i]," \n"[i==4]);output:1(空格)2(空格)3(空格)4(空格)5(\n... 阅读全文
posted @ 2014-08-07 11:22 france 阅读(157) 评论(0) 推荐(0)