上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: Problem HDuathlonInput:standard inputOutput:standard outputTime Limit:15 secondsA duathlon is a race that involves runningrkm and cyclingkkm.ncontesta... 阅读全文
posted @ 2015-03-15 15:22 Commence 阅读(434) 评论(0) 推荐(0) 编辑
摘要: Problem A: Expanding RodsWhen a thin rod of lengthLis heatedndegrees, it expands to a new lengthL'=(1+n*C)*L, whereCis the coefficient of heat expansi... 阅读全文
posted @ 2015-03-15 14:47 Commence 阅读(259) 评论(0) 推荐(0) 编辑
摘要: One of the tasks students routinely carry out in their mathematics classes is to solve a polynomial equation. It is, given a polynomial, sayX2- 4X+ 1,... 阅读全文
posted @ 2015-03-14 11:17 Commence 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Consider ann-by-nmatrixA. We defineAk=A*A* ... *A(ktimes). Here, * denotes the usual matrix multiplication.You are to write a program that computes th... 阅读全文
posted @ 2015-03-14 11:06 Commence 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Given the value ofa+bandabyou will have to find the value ofan+bnInputThe input file contains several lines of inputs. Each line except the last line ... 阅读全文
posted @ 2015-03-14 11:01 Commence 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inclu... 阅读全文
posted @ 2014-11-03 22:59 Commence 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int n;int dfs(int n){return n == 1 ? 1 : dfs(n / 2) + 1;}int main(){ while (cin >> n) cout << dfs(n) << endl; ... 阅读全文
posted @ 2014-11-03 22:55 Commence 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 翻转立方体#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #... 阅读全文
posted @ 2014-11-02 21:51 Commence 阅读(315) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inclu... 阅读全文
posted @ 2014-11-02 11:46 Commence 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 费用流 建图很简单直接上代码#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #... 阅读全文
posted @ 2014-10-29 17:34 Commence 阅读(538) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页