- 博客(25)
- 收藏
- 关注
原创 tomcat启动日志乱码 涓嬪崍
tomcat启动日志乱码 涓嬪崍在tomcat/conf/logging.properties文件中,查找到如下配置java.util.logging.ConsoleHandler.encoding = UTF-8修改字符编码格式:将UTF-8改为GB18030或GBK。
2020-08-30 12:44:59
473
原创 信息检索方法及思路
2020/04/02 第一次更新1. 信息检索入口虫部落·快搜2. 信息检索技巧注: *其实以下的功能都可以在搜索工具中手动选择1. 限定在特定网站(限定site)例子:在搜索引擎中输入“spring学习路线 site:zhihu.com ” 。注解:指定 只在zhihu.com这个site下,搜索 “spring学习路线” 。2.限定文件的类型例子:在搜索引擎中输入“...
2020-04-02 18:01:04
1995
原创 jquery中Input radio标签选择每个框各点击一次后失效问题
/** **失效的方法** 发现单选框中的每个框都被第一次点击过后,这个attr("checked", true);属性就会失效。 */if (_reader.readersex == "1") { $("#sex input:radio[name='sex'][value=1]").attr("checked", true);} else { $("#sex input:r...
2019-12-07 16:19:11
598
原创 2019第十届蓝桥杯C/C++ B组省赛题解 试题A:组队
答案:490注:每一个编号是一个人,一共是20个人,每个人只能选一次。画图工具画一下就出来,3个98,1,97,一个99。 也就是98*5 = 490当时没仔细看题,以为每一组都有20个人,就把每一列的最大值加起来了…得了个492 o(╥﹏╥)o泪奔!!!...
2019-03-25 12:55:08
973
原创 历届试题 日期问题
问题描述 小明正在整理一批历史文献。这些历史文献中出现了很多日期。小明知道这些日期都在1960年1月1日至2059年12月31日。令小明头疼的是,这些日期采用的格式非常不统一,有采用年/月/日的,有采用月/日/年的,还有采用日/月/年的。更加麻烦的是,年份也都省略了前两位,使得文献上的一个日期,存在很多可能的日期与其对应。 比如02/03/04,可能是2002年03月04日、2004年0...
2019-03-23 20:37:59
186
原创 L2-005 集合相似度 (25 分)
定两个整数集合,它们的相似度定义为:Nc / Nt × 100%。其中 Nc 是两个集合都有的不相等整数的个数,Nt是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对给定集合的相似度。输入格式:输入第一行给出一个正整数N(≤50),是集合的个数。随后N行,每行对应一个集合。每个集合首先给出一个正整数M(≤104),是集合中元素的个数;然后跟M个[0,109]区间内的整数。之后...
2019-03-20 23:20:51
386
原创 搜寻MH370
Time Limit: 1 Sec Memory Limit: 128 MBDescriptionMH370航班为马来西亚航空公司航班,由吉隆坡国际机场飞往北京首都国际机场。该航班飞机型号为美国波音公司的波音777-200ER客机。该航班在2014年3月8日凌晨时,在马来西亚与越南的雷达覆盖边界与空中交通管制失去联系…… 给定一个N*N的字符矩阵地图,要在地图中搜寻连续的“MH370”字...
2018-09-17 13:18:41
384
原创 奇校验矩阵
Time Limit: 1 Sec Memory Limit: 128 MBDescription对于一个给定的布尔矩阵,它的每一行每一列各个数的和必然是确定的。下面给出一个4 x 4的布尔矩阵。1 1 1 0 0 1 0 0 0 1 0 0 0 0 0 1 很明显,这个布尔矩阵每行各数的和依次位3,1,1和1,每列各数字的和依次为1,3,1和1,每行每列之和都是奇数。...
2018-09-17 13:14:05
3154
原创 锻炼身体
Time Limit: 1 Sec Memory Limit: 128 MBDescriptionHaiLin非常喜欢锻炼身体,他在淘宝上购买了一套7手的哑铃。如图所示,哑铃有不同的重量的规格。他购买的这套哑铃中只包含1、2、3、5、7、10千克的重量规格,Hailin是一个富二代,他为了炫富,每一种重量规格的哑铃各买了99999999999999999999个。他给自己制定了一个锻炼方...
2018-09-17 13:09:31
361
原创 【PAT】L1-014. 简单题【C语言实现】
#include <stdio.h>int main(){ printf("This is a simple problem.\n"); return 0;}
2018-04-14 17:22:17
807
原创 【PAT】L1-015. 跟奥巴马一起画方块【C语言实现】
一道看起来很难实则水到爆的题。样例输出中能得到行数是列数的一半。#include <stdio.h>int main(){ int n; char c; while(scanf("%d %c",&n,&c)!=EOF) { int i,j; if(n%2==0) { ...
2018-04-14 17:20:31
2594
1
原创 【PAT】L1-013. 计算阶乘和【C语言实现】
#include <stdio.h>int fun(int n){ int i,sum=1; for(i=1;i<=n;i++) { sum*=i; } return sum;}int main(){ int i,j,n,s,sum; while(scanf("%d",&n)!=EOF) ...
2018-04-14 17:17:51
365
原创 【PAT】L1-004. 计算摄氏温度【C语言实现】
#include <stdio.h>int main(){ int F; while(scanf("%d",&F)!=EOF) { printf("Celsius = %d\n",5*(F-32)/9); } return 0;}
2018-04-14 17:15:04
5701
2
原创 【PAT】L1-001. Hello World【C语言实现】
#include <stdio.h>int main(){ printf("Hello World!\n"); return 0; }
2018-04-14 17:06:30
219
原创 【PAT】L1-002. 打印沙漏【C语言实现】
思路:通过输入的符号个数去判断输出的行数。#include <stdio.h>#include <math.h> int main(){ int n; char ch; while(scanf("%d %c",&n,&ch)!=EOF) { int i,j,k,h,end1=0; h=sqrt((n+1)/2);//2*h*h-1=n;...
2018-04-14 17:03:24
929
2
原创 【PAT】1082. 射击比赛 (20)【C语言实现】
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>int main(){ int n; while(scanf("%d",&n)!=EOF){ int i; int id,x,y; int max=-...
2018-04-14 16:59:12
483
原创 【PAT】1081. 检查密码 (15)【C语言实现】
简单逻辑题。#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>int main(){ int n; int i; char s[85]; scanf("%d",&n); getchar(); for(i=0;i<n...
2018-04-14 16:56:13
628
原创 【PAT】L2-017. 人以群分【C语言快排实现】
#include <stdlib.h>int cmp(const void *a,const void *b){ return *(int *)a<*(int *)b;} int a[100001];int main(){ int n,m; while(scanf("%d",&n)!=EOF){ int i; for(i=0;i<...
2018-04-14 16:40:32
638
原创 【PAT】L2-009. 抢红包【C++快排】
#include<bits/stdc++.h>using namespace std;struct infor{ double book; int id;}S[100005];int cmp(infor a,infor b){ if(a.book!=b.book) return a.book > b.book; if(a.id!=b.id) ret...
2018-04-14 16:26:36
325
原创 Java中String中常用方法整理
读入字符串 Scanner in = new Scanner(System.in); String s; s = in.nextLine(); //以换行为结束标志 System.out.println(s); 比较字符串大小 == .compareTo() .equals() String a=new String("abc"); Strin...
2018-04-05 13:13:40
187
原创 【PAT】L1-043. 阅览室【C语言实现】
#include <stdio.h>#include <string.h>#include <math.h>#include <stdlib.h>int b[1005];int main(){ int n; scanf("%d",&n); int x,y,z; char a[5]; int ...
2018-04-04 19:37:54
1816
原创 【PAT】L1-020. 帅到没朋友【C语言实现】
#include <stdio.h>#include <string.h>int b[100005];int main(){ int n,m; int i,j,x,s=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&m); for(j=0;j...
2018-04-04 19:31:24
1506
原创 【PAT】L1-050. 倒数第N个字符串【C语言实现】
L1-050. 倒数第N个字符串 时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越给定一个完全由小写英文字母组成的字符串等差递增序列,该序列中的每个字符串的长度固定为 L,从 L 个 a 开始,以 1 为步长递增。例如...
2018-04-04 19:14:00
2684
1
原创 【PAT】1083. 是否存在相等的差 (20)【C语言实现】
1083. 是否存在相等的差 (20)给定 N 张卡片,正面分别写上 1、2、……、N,然后全部翻面,洗牌,在背面分别写上 1、2、……、N。将每张牌的正反两面数字相减(大减小),得到 N 个非负差值,其中是否存在相等的差? 输入格式: 输入第一行给出一个正整数 N(2 <= N <= 10000),随后一行给出 1 到 N 的一个洗牌后的排列,第 i 个数表示正面写了 i 的那张卡...
2018-03-27 23:43:53
320
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人