摘要: 第二种方法:首先分析题意,可用概率的方法来计算,做了好几道百度的题目,觉得大多数是再考概率论,所以首先要弄懂题意,最后做题前把公式写出来,这样编码时才能游刃有余。 本题中下面的第一种用迭代枚举的方法来做是不对的,仅做错误示范 // ConsoleApplication3.cpp : 定义控制台应用程 阅读全文
posted @ 2017-02-27 17:21 wdan2016 阅读(1090) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include using namespace std; int main() { int n,m, x, y, t; while (cin n m x y t) { vector pVec; for (int i 阅读全文
posted @ 2017-02-27 12:03 wdan2016 阅读(592) 评论(1) 推荐(0) 编辑