上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: C++读取字符串数据的两种方式 对于同样的样例输入: ladder came tape soon leader acme RIDE lone Dreis peat ScAlE orb eye Rides dealer NotE derail LaCeS DrIed noel dire Disk ma 阅读全文
posted @ 2019-03-01 16:36 MarkKobs 阅读(1639) 评论(0) 推荐(0)
摘要: 数学: 1 三角函数 double sin (double); double cos (double); double tan (double); 2 反三角函数 double asin (double); 结果介于[ PI/2, PI/2] double acos (double); 结果介于[0 阅读全文
posted @ 2019-03-01 15:38 MarkKobs 阅读(4032) 评论(0) 推荐(2)
摘要: 一、C++结构体 define LOCAL include include using namespace std; const int MAX=100; int main() { ifdef LOCAL freopen("data.in","r",stdin); freopen("data.out 阅读全文
posted @ 2019-02-28 16:31 MarkKobs 阅读(1229) 评论(0) 推荐(0)
摘要: 一、题目描述 Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avo 阅读全文
posted @ 2019-02-27 19:14 MarkKobs 阅读(387) 评论(0) 推荐(0)
摘要: 包含min函数的栈 一、题目描述 定义栈的数据结构,请在该类型中实现一个能够得到栈中所含最小元素的min函数(时间复杂度应为O(1))。 二、算法思想 首先拿到这题,我们一上来想到的可否用一个中间变量来存放最小值,这种在对于入栈时最小值的更新是可以起到作用的,但是出栈时如果包含该最小值的变量弹出了, 阅读全文
posted @ 2019-02-24 11:04 MarkKobs 阅读(221) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页