摘要: https://www.codechef.com/ICL2019/problems/ICL1906 两个整数,[0,1e5]操作1是让两个数同时减1(只有都大于0的时候才可以用)操作2可以让一个数乘2问让两个数都变成0的最小操作次数 直接贪心。能乘就乘。 1 #include <bits/stdc+ 阅读全文
posted @ 2019-03-29 23:10 MXang 阅读(111) 评论(0) 推荐(0) 编辑
摘要: https://code.mi.com/problem/list/view?id=142 暴力。 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 1e7+7; 4 int vis[N]; 5 int a,b,c,d, 阅读全文
posted @ 2019-03-29 23:08 MXang 阅读(307) 评论(0) 推荐(0) 编辑