01 2019 档案

HDU2519(组合数计算)
摘要:"HDU2519" include using namespace std; typedef long long ll; inline ll C(ll n, ll m){ ll c; if(n 阅读全文

posted @ 2019-01-21 08:20 坤sir 阅读(254) 评论(0) 推荐(0)

CodeForces - 3D
摘要:"CodeForces 3D " D. Least Cost Bracket Sequence time limit per test1 second memory limit per test64 megabytes inputstandard input outputstandard outpu 阅读全文

posted @ 2019-01-12 11:13 坤sir 阅读(173) 评论(0) 推荐(0)

UVA 10976(暴力)
摘要:"UVA 10976" 题意:输入正整数k,找到所有的正整数x =y,使得1/k=1/x+1/y。 include using namespace std; typedef long long ll; struct node{ ll a, b, c; }; ll n, cnt; int main() 阅读全文

posted @ 2019-01-04 16:34 坤sir 阅读(153) 评论(0) 推荐(0)

UVA 11059(暴力)
摘要:"UVA 11059" 题意:输入n个元素组成的序列S,你需要找出一个乘积最大的连续子序列。如果这个最大的乘积不是正数,应输出0(表示无解)。1 using namespace std; typedef long long ll; const int N = 1e5+10; const ll inf 阅读全文

posted @ 2019-01-04 16:30 坤sir 阅读(167) 评论(0) 推荐(0)

UVA725
摘要:"UVA725" 题意:输入整数n,按从小到大顺序输出所有形如abcde/fghij=n的表达式,其中a~j恰好为0~9的一个排列(可以有前导0),2 using namespace std; bool s[10]; bool solve(int k, int n){ int t; t = k; i 阅读全文

posted @ 2019-01-04 16:25 坤sir 阅读(126) 评论(0) 推荐(0)

导航