g++ --version gcc --version 没有版本号的话下载 有的话 执行 sudo find / -name "cc1plus" export PATH="/usr/libexec/gcc/x86_64-redhat-linux/4.8.2:$PATH" 加到环境变量 ...
分类:
其他好文 时间:
2020-12-05 10:53:48
阅读次数:
9
题意: 定义一条路径的权值为路径上所有边的编号直接相连所得到的十进制数字的大小求1到每个点的最短路mod 1e9+7n,m<=100000。 题解: 对于一个点来说,他肯定跑位数最少,其次就是字典序最小,可以把边权拆开,然后跑bfs就会满足位数最少,那么字典序最小,就在bfs的过程中满足,然后利用分 ...
分类:
其他好文 时间:
2020-12-04 11:01:36
阅读次数:
4
package com.example.ccc; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase. ...
分类:
移动开发 时间:
2020-12-03 12:17:14
阅读次数:
9
用户自定义协议client/server代码示例 代码参考链接:https://github.com/sogou/workflow message.h message.cc server.cc client.cc 关于user_defined_protocol 本示例设计一个简单的通信协议,并在协议 ...
分类:
其他好文 时间:
2020-12-03 11:39:04
阅读次数:
3
核心容器(Core Containe) 核心容器提供了Spring框架的基本功能,是其它模块建立的基础,有 spring-core、spring-beans、spring-context、spring-context-support和spring-expression(Expression Lang ...
分类:
编程语言 时间:
2020-12-03 11:34:23
阅读次数:
5
一 环境准备 pip install flask pip install --ignore-installed PyYAML pip install prometheus_client 二 包引入 from prometheus_client import Gauge from prometheus ...
分类:
其他好文 时间:
2020-12-02 12:18:57
阅读次数:
5
原创宋宝华Linux阅码场3月11日众所周知,Linux的进程睡眠有两种常规状态:TASK_INTERRUPTIBLE(浅度睡眠):可以被等待的资源唤醒,也能被signal唤醒;TASK_UNINTERRUPTIBLE(深度睡眠):可以被等待的资源唤醒,但是不能被signal唤醒。简单来说,深度睡眠的进程必须等待资源来了才能醒,在此之前,甚至你给它发任何的信号,它都不可能醒来。浅度睡眠的进程,则可
分类:
系统相关 时间:
2020-12-02 12:13:52
阅读次数:
7
super super(props): Superclass will help you to keep the props:[^ props] import React, { Component } from "react"; export default class App extends Co ...
分类:
其他好文 时间:
2020-12-01 12:16:33
阅读次数:
4
#题目链接 increasing-decreasing-string #题目内容 给你一个字符串 s ,请你根据下面的算法重新构造字符串: 从 s 中选出 最小 的字符,将它 接在 结果字符串的后面。 从 s 剩余字符中选出 最小 的字符,且该字符比上一个添加的字符大,将它 接在 结果字符串后面。 ...
分类:
其他好文 时间:
2020-12-01 11:47:42
阅读次数:
3
ef6转化为efcore 1.ef6 sql service先修改为 ef6 pgsql 1.1 安装 EntityFramework6.Npgsql 包 1.2 修改config 文件中的连接串 新建一个pagsql的数据库 JustTest <connectionStrings> <add na ...
分类:
数据库 时间:
2020-11-27 11:43:09
阅读次数:
13