自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 No mapping for GET /css/bootstrap.min.css

No mapping for GET /css/bootstrap.min.cssspringboot 使用thymeleaf 下的页面的css等样式显示不出来。MyMvcConfig.java内加上这两个函数 private static final String[] CLASSPATH_RESOURCE_LOCATIONS = { "classpath:/META-INF/resources/", "classpath:/resources/", .

2021-03-28 21:28:13 2916 3

原创 war exploded: Error during artifact deployment. See server log for

把war包删除了重新添加war包tomcat删除war包,然后再重新添加,重新启动就可以启动成功了

2021-02-24 22:27:55 159

原创 P4414 [COCI2006-2007#2] ABC (JAVA)

import java.util.Scanner;import java.util.Arrays;public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int[...

2020-05-05 20:57:46 577

原创 洛谷 P1068 分数线划定 C++

#include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m; int a[n],b[n],i,j,flag; for(i = 0;i < n;i++){ cin>>a[i]>>b[i]; }/* for(i = 0;i &lt...

2020-03-16 19:57:45 1156

原创 C++函数头文件

1.2020.03.15最近在刷排序的题,发现自己写swap函数却用不了,后来干脆放弃,直接写无数次int temp = a[];a[] = b[];b[] = temp;看了题解后发现别人的代码不用自定义swap函数,却可以直接用swap交换两个数。后来百度swap()函数头文件才发现,c++内置了swap函数(还是swap函数模板),有#include<iostream&...

2020-03-15 20:39:56 14375 2

原创 洛谷 P1093 奖学金(排序,结构体,sort函数,c++实现)

首先考虑总分,然后载考虑语文成绩,然后学号;#include<iostream>#include<algorithm>using namespace std;struct student{ int id;//学号 int s;//总分 int yw;//语文成绩}stu[310];bool cmp(student a,student b){ i...

2020-03-15 19:16:12 486

原创 洛谷 P1042 乒乓球

#include<iostream>#include<cstdio>#include<cstdlib>using namespace std;#define max 150000int main(){ char a[max],x; int len=0,i,cnt1 = 0,cnt2 = 0; while(cin>>x){//...

2020-03-08 22:59:53 157

原创 快速排序

void quick_sort(int *a,int l,int r){//快速排序 int temp; int i = l,j = r; if(l < r){ temp = a[l]; while(i != j){ while(i < j && a[j] > temp){ j--; } if(i < j){ ...

2020-03-07 01:11:08 67

原创 c语言应用

1 在代码:while ( !e )中,!e 等价于:A.e ==0 B. e != 1 C. e!=0 D. e == 1只有当e的逻辑为false时这个表达式才成立,!false=true而对于整数e而言,任何非0的整数值都是逻辑的true,换句话说只有整数0才代表逻辑false,因此!e换一个写法既是e == 0因此选 A对于以下代码:int i=6;do {pri...

2020-03-06 21:27:46 186

原创 洛谷 P1540 机器翻译

#include<stdio.h>#define max 1100 //一开始没有看清题目,申请110个数组空间int que[max];int j = 0;int enqueue(int a,int m){ int i; if(j < m){ que[j++] = a; } else if(j >= m-1){ for(i = 1;i ...

2020-03-03 00:33:13 136

原创 洛谷 P1618 三连击(升级版)

#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); int i,x,y,z,k,put=0,sum; for(i = 123;i < 999;i++){ x = i; y = i/1.00/a*1.00*b*1.00;//如果写成i/a*b,当输...

2020-03-01 17:19:26 99

原创 洛谷P1478 陶陶摘苹果(升级版)

#include<stdio.h>#define max 6000 //申请的空间一开始是1000,有一组样例没通过;申请的数组空间不够;int main(){ int n,s; int a,b; scanf("%d %d",&n,&s); scanf("%d %d",&a,&b); int x[max],y[max],i;...

2020-02-29 01:07:28 142

原创 关于整数浮点数的scanf和printf

关于整数浮点数的scanf和printf整数intscanf("%d",...);printf("%d",...);带小数点的数doublescanf("%lf",...);printf("%f",...);

2019-11-26 23:30:15 623

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除