ICode9

精准搜索请尝试: 精确搜索
  • [Java SE]反射之Class2022-07-19 18:31:08

    1 获取 指定Class 的类名 package cn.johnnyzen.bd.gatewayservice; import org.junit.Test; @Test public void getClassFullPath(){ System.out.println(LogTest.class.getClass().getName()); // java.lang.Class System.out.println(LogTest.class.

  • java se 高级基础2022-07-15 16:02:55

    接口 继承树 Collection接口 Map接口 Collection 接口 Collection接口:单列集合,用来存储一个一个的对象 List接口:extends Collection,存储有序的、可重复的数据。 -->“动态”数组 ArrayList、LinkedList、Vector Set接口:extends Collection,存储无序的、不可重复的数据 -->高中

  • JAVA SE 以及学前准备笔记2022-07-14 15:04:51

    学习JAVA前的准备 做JAVA的目的 自认为JAVA的学习不算太难,可能以后不会一直从事这样的行业,但是内在的逻辑思维,以及某些时候想要以个人的名义开发一个APP之类的东西的时候就需要编程,而JAVA的适用范围广,有用。且个人认为优先JAVA可能会对我以后如果需要深入学习别的编程会有帮助。

  • 1-树-遍历、翻转、对称2022-07-10 09:02:37

    1-1 二叉树遍历 1-1-1 非递归遍历先中后 - 源码 先序遍历 -- 根左右 中序遍历 -- 左根右 后序 -- 左右根 1-1-2层序 -- 队列 1-2 构建二叉树 (根据俩数组构建) 1-2-1先序-中序 1-2-2后序-中序 1-2-3层序-中序 1-3 翻转二叉树 1-4 对称二叉树 1-1 二叉树遍历 1-1-1 非递

  • Oracle 数据库 临时表空间文件(TEMP01.DBF)太大, 替换的方式缩小2022-06-29 19:31:53

    建议在数据库于未使用时操作 1 --查看临时表空间和其包含的文件 2 select d.file_name, d.file_id, d.tablespace_name, d.bytes from dba_temp_files d; 3 4 --创建新的临时表空间 5 create temporary tablespace temp02 tempfile 'C:\ORACLE\ORADATA\ORACLE\temp03.dbf'

  • Create a git patch from the uncommitted changes in the current working directory2022-06-29 13:04:32

    https://stackoverflow.com/questions/5159185/create-a-git-patch-from-the-uncommitted-changes-in-the-current-working-directory Create a git patch from the uncommitted changes in the current working directory Ask Question Asked 11 years, 4 months ago Modi

  • 2022-BUAA-SE-提问回顾与个人总结2022-06-25 17:01:44

    提问回顾与个人总结 问题 提问题的博客 问题1 老师提到团队角色中PM(Program Manager)是一定要承担具体的任务的,而且应该具有多重的能力:专业、交际、销售......但是对于学生团队来说,一个商业上的Rookie应该如何发现自己的PM潜力? 在实践的过程中,一个PM应当具有广阔的眼界、良好的

  • loj6481 #6481. 「ICPC World Finals 2017」Visual Python++2022-06-25 14:34:21

    同时也是CF gym101471L。 题目叙述 给定 \(n\) 个矩形的左上和右下,问是否能够还原出一种方案使得举行只包含或相离,不相交。 题解 考虑每个右下的点匹配离他最近的左上的点。 结论是如果有解,这样匹配就是正确的。 剩下问题是看是否只有嵌套关系,考虑按照 \(x\) 从小到大进行扫描线,每

  • [AcWing 1012] 友好城市2022-06-17 12:36:30

    点击查看代码 #include<iostream> #include<algorithm> #define fi first #define se second using namespace std; const int N = 5010; int n; int f[N]; pair<int,int> p[N]; int main() { cin >> n; for (int i = 1; i <= n; i ++) { int a

  • Searching from end of file using VIM2022-06-17 12:33:54

    https://stackoverflow.com/questions/12867573/searching-from-end-of-file-using-vim   Searching from end of file using VIM Ask Question Asked 9 years, 8 months ago Modified 3 years, 11 months ago Viewed 64k times   Report this ad 43 11 Ho

  • web文件上传下载组件2022-06-17 11:33:11

    ​ 文件夹数据库处理逻辑 public class DbFolder {     JSONObject root;         public DbFolder()     {         this.root = new JSONObject();         this.root.put("f_id", "");         this.root.put("f_nameLoc", "根

  • Codeforces 896C Willem, Chtholly and Seniorious 珂朵莉树 ODT2022-06-15 17:04:00

    珂朵莉树练习 代码 // Problem: E. Willem, Chtholly and Seniorious // Contest: Codeforces Round #449 (Div. 2) // URL: https://codeforces.com/contest/897/problem/E // Memory Limit: 256 MB // Time Limit: 2000 ms #include <iostream> #include <cstring> #i

  • Java se2022-06-14 11:02:50

    简单了解java类加载的运行顺序 进入main方法的类时的操作 以main方法的类作为入口 给本类static修饰的成员变量赋一个默认值,如果还被final修饰,就赋值为定义的那个值,执行本类的static代码块(先执行static代码块还是成员变量由在代码中的位置决定) 其次是static方法 当使用  类的s

  • web大文件上传断点续传源码2022-06-13 11:02:27

    ​ 文件夹数据库处理逻辑 public class DbFolder {     JSONObject root;         public DbFolder()     {         this.root = new JSONObject();         this.root.put("f_id", "");         this.root.put("f_nameLoc", "根

  • Module compiles, but editor shows compilation issues2022-06-09 12:34:39

    Module compiles, but editor shows compilation issues  answered Arnoud Glimmerveen Created April 18, 2014 11:01   Since I reorganized my environment today (New project, clean checkout of code from SVN), I have not been able to edit code without the

  • Difference between extending and intersecting interfaces in TypeScript?2022-05-27 17:34:48

    Difference between extending and intersecting interfaces in TypeScript? Ask Question Asked 3 years, 7 months ago Modified 10 months ago Viewed 18k times   88 25 Let's say the following type is defined: interface Shape { color: string;

  • 【Java SE】反射2022-05-22 19:33:24

    返回自己和超类的 public 字段、方法、构造器getFields()getMethods()getConstructors() 超类没返回 返回自己的所有 字段、方法、构造器getDeclaredFields()getDeclaredMethods()getDeclaredConstructors() package cn.ycx.common.reflect; import java.lang.reflect.Construct

  • B. Stone Age Problem_思维2022-05-17 10:32:11

    B. Stone Age Problem_思维 题目大意: 给定一个序列a和q次询问。第一种询问要将ai换成x,第二次询问将整个序列换成x。每次询问要给出整个序列的和。 思路和代码: 乍一看是一个区间查询问题,用线段树可能会T,我毛姑姑这个懒标记应该会很慢。 仔细想一下可以发现不论单点修改了几次,只要有

  • E - Entertainment Box2022-05-16 20:31:22

    这道题算是活动选择的plus版本,限定了有几个卡槽,一样是用贪心的思想做,但是存数得用一个可以自动排序的数据结构存储,而且还得必须找出当前活动能否排在已经排好的活动后,也就是 说寻找第一个大于将要插入活动的开始时间的活动。 用multiset multiset默认按升序排列,自带upper_bound()函

  • matlab数字图像处理(3)——数字形态学处理2022-04-22 00:34:58

    数字形态学处理 (1)请用Matlab 编写程序实现利用1个半径为r/4的圆形结构元素膨胀1个半径为r的圆 (自定义r)。需要提供程序,原图,处理后的图像,并分析处理后图像的变化。 【代码】 %生成圆(r=200) n=1000; % n为画布大小 r=240; % r为圆的半径 A=2*ones(n); for x=1:

  • 砍竹子题解(思维+暴力)2022-04-09 18:31:37

    题目描述 题目思路 其实就是找到最大的数然后把他周围相同的点和他一起操作 每个点最多操作\(6\)次,那么时间复杂度为\(nlogn\) 代码 #include<cstdio> #include<map> #include<set> #include<iostream> #include<algorithm> #include<cstring> #define fi first #define se secon

  • 蓝桥杯真题 时间显示2022-04-06 00:03:41

    问题描述   思路 这个题很简单……水个数量 忽略毫秒,直接把最后三位截掉 忽略年月日,对一天的秒数取余(24*3600=86400) 那么怎么取余呢:java直接超大数暴力求解 最后分别求出小时数、分数,剩下的就是秒数 代码 1 package demo; 2 3 import java.math.BigInteger; 4 import java

  • 【Java SE】默认方法冲突2022-04-04 12:03:24

      interface Named { default void getName() { System.out.println("named"); } } interface Show { default void getName() { System.out.println("show"); } } class Person { public void getName() {

  • 牛客小白月赛462022-03-25 22:33:32

    比赛链接 牛客小白月赛46 E.对决 题目描述 现在有 \(n\) 个人要比赛,第 \(i\) 个人能力值为 \(a_{i} , 一\) 共进行 \(n-1\) 场比赛。在一场比赛中,能力值大的人赢,如果相同 就由作为裁判的你䦼定谁赢。输掉的人离开比赛,最后留下来的人是冠军。 你还有有两个道具,一个可以让一个人在一

  • 编写一个程序,读取以与骰子I相同的方式构造的两个骰子,并确定这两个骰子是否相同。你可以像掷骰子I一样掷骰子,如果从六个方向观察到的所有整数与另一个骰子的整数相同,这些骰子可以被认为是相同的。2022-03-21 22:04:47

    题面 编写一个程序,读取以与骰子I相同的方式构造的两个骰子,并确定这两个骰子是否相同。你可以像掷骰子I一样掷骰子,如果从六个方向观察到的所有整数与另一个骰子的整数相同,这些骰子可以被认为是相同的。 输入 在第一行中,分配给骰子面的六个整数按其相应标签的升序给出。 在第二行

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有