码迷,mamicode.com
首页 > 全部
02_选择结构
1°单if语句 结构: if (/*条件*/){ /*执行体*/; } 例子: int age = 19; if (age > 18){ System.out.println('打机'); } System.out.println('回家'); 2°标准if...else...语句 例子: int ...
分类:其他好文   时间:2021-04-13 12:21:28    阅读次数:0
知识产权
一:软件著作权 软件著作权的发生时间,是软件完成的时候 二:确定专利权人 根据专利法的规定,专利权归属于发明人或者设计人,这是指对发明创造做出创造性贡献的人。对于在发明创造过程中,只负责组织、提供方便、从事辅助工作的都不属于发明人或设计人。 1、职务发明: 如果是执行单位任务,或者是利用本单位的物质 ...
分类:其他好文   时间:2021-04-13 12:21:13    阅读次数:0
es6字符串操作
1、includes()、startsWith()、endsWith()2、repeat()3、模板字符串(template string)1、includes()、startsWith()、endsWith()includes():返回布尔值,表示是否找到了参数字符串。startsWith():返 ...
分类:其他好文   时间:2021-04-13 12:20:52    阅读次数:0
jsp.6
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <html> <head> <title>登陆界面</title> <link rel="stylesheet" href="./layui/css/layui.css" ...
分类:Web程序   时间:2021-04-13 12:20:28    阅读次数:0
IDEA中使用Tomcat解决中文乱码问题
IDEA中使用Tomcat解决中文乱码问题 首先在Tomcat的Configurations中配置VM options: -Dfile.encoding=UTF-8 如果操作1不行,就设置IDEA的编码: 在Setting中选择File Encodings: Global Encoding选择UTF ...
分类:其他好文   时间:2021-04-13 12:20:15    阅读次数:0
C. Add One
http://codeforces.com/contest/1513/problem/C dp $f[i][j]:$表示当前数位上为i(0~9), 加法次数为j最终形成的数位. f[i][j] = f[i - 1][j + 1]; f[9][j] = f[1][j + 1] + f[0][j + 1 ...
分类:其他好文   时间:2021-04-13 12:19:52    阅读次数:0
go面向对象3
类型断言 .(type) 来实现 其中 type 对应的就是要断言的类型 接口类型断言 var num1 Number = 1 var num2 Number2 = &num1 if num3,ok := num2.(Number1);ok { fmt.Println(num3.Equal(1)) ...
分类:其他好文   时间:2021-04-13 12:19:31    阅读次数:0
[Swagger]Unable to resolve service for type 'Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupCollectionProvider' while attempting to activate
详细错误如下 System.AggregateException:“Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Swashbuckl ...
分类:Windows程序   时间:2021-04-13 12:19:16    阅读次数:0
解决 antd select 下拉框不跟着页面滚动
在用 ant-designer 的 select 时候,有时候会发生下拉框没跟着页面滚动,这怎么办? ...
分类:其他好文   时间:2021-04-13 12:18:53    阅读次数:0
三角形的个数
题目描述 坤坤给你一个边长为n的等边三角形图形,请你查出图形内等边三角形的个数。 因为数据过大,所以要求答案对1e9+7取模。 如图是n=2的三角形阵列。我们可以看出有5个三角形。 请输出n为20210411时的三角形的个数。 输入描述: 无输入 输出描述: 直接输出 备注: 请直接打印答案即可。 ...
分类:其他好文   时间:2021-04-13 12:18:20    阅读次数:0
C strstr函数代码实现
int * Mystrstr(const char * str1, const char* str2) { char* p1 = NULL; char * p2 = NULL; char * cur = (char *)str1; if (*p2=='\0') { return cur; } whi ...
分类:其他好文   时间:2021-04-13 12:18:00    阅读次数:0
小测最后一题的连续因子的解题报告
7-84 连续因子 (20 分) 一个正整数 N 的因子中可能存在若干连续的数字。例如 630 可以分解为 3×5×6×7,其中 5、6、7 就是 3 个连续的数字。给定任一正整数 N,要求编写程序求出最长连续因子的个数,并输出最小的连续因子序列。 输入格式: 输入在一行中给出一个正整数 N(1<N ...
分类:其他好文   时间:2021-04-13 12:17:35    阅读次数:0
Restful API
package com.example.query; import java.io.Serializable; public class UserQuery implements Serializable { private Integer id; private String username; ...
分类:Windows程序   时间:2021-04-13 12:17:10    阅读次数:0
linux shell命令之非交互式Shell脚本
vi no_interaction_script1.sh #!/bin/bash #提示用户该脚本3秒后退出echo "This script will quit after 3 seconds. " #计时3s sleep 1echo -n "."sleep 1echo -n "."sleep 1 ...
分类:系统相关   时间:2021-04-13 12:16:49    阅读次数:0
2021 ICPC 昆明 M.Stone Games
答案是对着这段区间 [L,R] 不断询问直到不存在 x+1 得来的; 例如一个区间有为 1,2,4,4; 首先询问 1,发现存在 1,ans = 1; 然后询问 ans+1 = 2,发现存在 2,则 [1,3] 都能凑出,ans = 3; 接着询问 ans+1 = 4,发现存在两个 4,则 [1,1 ...
分类:其他好文   时间:2021-04-13 12:16:27    阅读次数:0
Golang Stream Api
package stream import ( "log" "reflect" "sort" ) type ( // a Stream is where one can drain data from Stream chan interface{} // buffer stream BufferSt ...
分类:Windows程序   时间:2021-04-13 12:15:56    阅读次数:0
c语言入门教程–-5判断语句
#include<stdio.h> int main() { int a=1; int b=1; if(a==b) { printf("相等"); } else { printf("不相等"); } return 0; } ...
分类:编程语言   时间:2021-04-13 12:15:37    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!