2019年1月4日

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 阅读(142) 评论(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 阅读(153) 评论(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 阅读(106) 评论(0) 推荐(0) 编辑

导航