#include<iostream>#include <cstdio>#include <string.h> #include <math.h> using namespace std; int time_value(int h,int m,int s){ return h*3600+m*60+s; ...
分类:
其他好文 时间:
2020-08-26 17:11:16
阅读次数:
41
大家都知道支付宝支付和微信支付宝都只能局限在自己的平台,微信内支付宝支付是根本就不能使用,即使是公众号支付也需要跳转到外部浏览器才可以唤起支付宝支付,并且QQ浏览器唤起支付宝支付还是问题很多,所以一般在微信生态内的应用一般都不考虑接入支付宝,但仍然有不少用户有这方面的需求,今天就给大家做个详细接入流程!
分类:
微信 时间:
2020-08-25 18:35:44
阅读次数:
87
1 . 创建Protobuf序列化 工具类ProtobufExchang.cs, 需要添加应用protobuf-net.dll 组件 using ProtoBuf;using System;using System.Collections.Generic;using System.IO;using ...
1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+5; 4 bool isprime[maxn]; 5 int prime[maxn]; 6 int mu[maxn]; 7 int cnt=0; 8 void ...
分类:
其他好文 时间:
2020-08-24 16:36:48
阅读次数:
60
Job:控制Pod完成工作 Begin: kubectl explain job.spec Job基础Yaml apiVersion: batch/v1 kind: Job metadata: name: batch-job namespace: controller-test spec: temp ...
分类:
其他好文 时间:
2020-08-20 19:27:01
阅读次数:
140
2020.08.05 1、多线程 2、IPC、共享内存 3、bind 4、合并n个有序链表 (力扣原题 使用最小堆会快一些) #include <queue> using namespace std; struct ListNode { int val; ListNode* next; ListNo ...
分类:
其他好文 时间:
2020-08-20 18:20:10
阅读次数:
118
题意: 有三个人各有x,y,z块钱,每次最多钱的人会把有1/2的概率給别人一块钱,问要给多少次,才能平均三个人的钱数。 0<x,y,z<=1e6 首先肯定是有明显的状态转移关系的。 假设x>=y>z 很容易列出dp[x][y][z]=1/2dp[x-1][y+1][z]+1/2dp[x-1][y][ ...
分类:
其他好文 时间:
2020-08-20 18:18:40
阅读次数:
55
1.主机名称文件 /etc/hostname (centos7) /etc/sysconfig/network (centos6) 2 本地解析文件 /etc/hosts 3 磁盘开机自动挂载文件 /etc/fstab 4. 系统开机自动命令信息的文件 /etc/rc.local——设置服务器开机启 ...
分类:
其他好文 时间:
2020-08-19 19:23:06
阅读次数:
62
#include<iostream> #include<stdio.h> #include<string.h> #include<math.h> using namespace std; int fact(int n,int p) //十进制转为任意进制 (n是十进制数,p是要转化进制选择) { i ...
分类:
其他好文 时间:
2020-08-18 15:41:07
阅读次数:
103
c++ 字符串反转的3种方法 1、使用string.h中的strrev函数 #include <iostream> #include <cstring> using namespace std; int main() { char s[] = "hello"; strrev(s); cout<< s ...
分类:
编程语言 时间:
2020-08-18 15:36:13
阅读次数:
66