摘要: 倍增 这是一道简单数论题 using namespace std; typedef long long LL; const int N = 1e5 + 10; int a[N], n; int div(int x) { if(x % 2 == 0) while(x % 2 == 0) x /= 2; 阅读全文
posted @ 2023-05-08 13:32 cxy8 阅读(13) 评论(0) 推荐(0)
摘要: 泛型使用 泛型的本质是参数化类型 1、 List<T>{} public class HashSet<E>{} T和E必须是引用类型不能是基本类型 2、使用 List<Integer> list = new ArrayList<Integer>(); //后面可以直接缺省java编译器会帮我们自动推 阅读全文
posted @ 2023-05-08 12:48 cxy8 阅读(35) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示