• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
frankM
天下武功,唯快不破。
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  模拟

 
NYOJ 294 Bot Trust
摘要:链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=294一步一步模拟出来的....把情况考虑全面: “Both robots know the full sequence in advance” #include #include#includ... 阅读全文
posted @ 2014-06-04 15:19 frankM 阅读(129) 评论(0) 推荐(0)
HDU 1555 How many days?
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1555模拟一下就行了..注意不要忘了musing namespace std;int main(){ int m,k; int ans; while(cin>>m>>k&&m+k!=0) ... 阅读全文
posted @ 2014-06-01 17:24 frankM 阅读(131) 评论(0) 推荐(0)
NYOJ 168 房间安排
摘要:链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=168模拟即可:#include using namespace std;int sign[200];int main(){ int t; int n; int i; in... 阅读全文
posted @ 2014-05-22 22:43 frankM 阅读(142) 评论(0) 推荐(0)
HDU 1234 开门人和关门人
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1234直接用strcmp()比较时间即可#include #include int main(){ bool judge(char t1[],char t2[]); char id[20]; char t1[... 阅读全文
posted @ 2014-05-20 20:22 frankM 阅读(166) 评论(0) 推荐(0)
HDU 1172 猜数字
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1172把1000~9999间的数字遍历一遍,如果只有一个符合条件的话,就输出,否则 not sure#include using namespace std;char data[105][5];int a[1... 阅读全文
posted @ 2014-05-18 13:12 frankM 阅读(151) 评论(0) 推荐(0)
HDU 1035 Robot Motion
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1035简单模拟题...但有几个细节需要注意:1>当输入为0 0 时程序会不会正常结束(如果scanf("%d%d%d",....)是不可以滴)2>走到边缘是不结束的,只要迈出去才算3>注意loop的步数,不要... 阅读全文
posted @ 2014-05-13 21:20 frankM 阅读(119) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3