#include "stdafx.h" #include "iostream" #include "cstring" #include "string" using namespace std; int a,b,c,d; int main() {for (c=0;c>=0;c++) //此处可用替换 ...
分类:
其他好文 时间:
2020-05-21 09:33:03
阅读次数:
205
今天是重刷一本通的第二天 今天刷的是第二章的数据排序 这次呢 题有点多 直接放上前两个题的代码罢 T1车厢重组 /*T1车厢重组 这个小水题我们直接用冒泡排序过了罢*/ #include<iostream> using namespace std; int main(){ int n,a[n+1]= ...
分类:
其他好文 时间:
2020-05-21 00:38:00
阅读次数:
74
题目: 大致题意: 这是完全背包。 而且是加了点东西的完全背包。 f[i]表示总资产i的最大利息值。 按照完全背包的模板来n次就能找出正确答案。 在完全背包的循环执行完毕后则需要用s加上f[s],因为f[s]只是总资产s的利息。 那么代码便是: ...
分类:
其他好文 时间:
2020-05-21 00:04:01
阅读次数:
59
using System;using JWT;using JWT.Algorithms;using System.Collections;using System.Collections.Generic;using JWT.Serializers;namespace JwtTest{ class P ...
分类:
其他好文 时间:
2020-05-20 21:34:35
阅读次数:
80
//merge sort //合并有序序列 //没有改变相等元素的前后位置 #include<iostream> #include<vector> using namespace std; void merge(vector<int>& v, int left, int right, int rig ...
分类:
编程语言 时间:
2020-05-20 20:06:28
阅读次数:
71
对于像是1+2的中缀表达式,我们可以轻松地运用代码来算出结果。 但是对于1+(2^2)/3*4这样的表达式,事情就变得有些复杂了... 对于上述的表达式,我们可以运用栈的相关知识来解决—建立两个栈,栈1放数字,栈2放运算符;遇到数字时入栈1;遇到运算符时,若栈2为空,则pop出栈1中的两个数运算,将 ...
分类:
其他好文 时间:
2020-05-20 18:55:48
阅读次数:
44
1 class C++是一种面向对象的编程语言,需要创建一个个对象,也就是类。 如下程序所示,创建了一个体积类(volume),类包括长宽高。 而A是体积类的一个实例。 #include <iostream> using namespace std; class volume //创建类的格式:cl ...
分类:
编程语言 时间:
2020-05-20 15:59:45
阅读次数:
64
#include <bits/stdc++.h> using namespace std; struct B { B() { this->chr = 0xcedf; } short chr; }; struct A { B s; int i; }; int main() { int64_t i64 ...
分类:
其他好文 时间:
2020-05-20 15:52:14
阅读次数:
56
本文使用特性来描述接口而不是xml文件,使用特性可自定义接口在swaggerUI上的描述 安装nuget包:Swashbuckle.AspNetCore.SwaggerUI和Swashbuckle.AspNetCore.Annotations,配置swagger: using Microsoft.A ...
分类:
Web程序 时间:
2020-05-20 12:48:00
阅读次数:
94
#include<bits/stdc++.h> using namespace std; const int N = 50; int addition (char[] , char[] , int[]);//大数加法,返回sum数组的长度 int subtraction (char[] , char ...
分类:
其他好文 时间:
2020-05-20 12:39:02
阅读次数:
46