原题链接 考察:dfs或者bfs 暴力枚举即可,没有什么特别的技巧 dfs:找到了就标记一下,避免继续搜索(因为答案一定在long long里,所以超过18位就可以不用算了) bfs:用G++编译,找到当即退出.注意一定要让所有路径都有返回值否则报错 1 #include <cstdio> 2 #i ...
分类:
其他好文 时间:
2021-01-11 11:20:58
阅读次数:
0
Linux-C-GetUserName code //getUserName.c #include <iostream> #include <string> using namespace std; #ifdef linux #include <unistd.h> #include <pwd.h> ...
分类:
系统相关 时间:
2021-01-11 11:16:12
阅读次数:
0
#include <iostream> #include <vector> #include <string> using namespace std; struct Node { int data; Node * next; }; Node * reverseList(Node * head) { ...
分类:
其他好文 时间:
2021-01-11 11:11:15
阅读次数:
0
1 #region 三角函数和反三角函数 2 3 using System; 4 using System.Collections.Generic; 5 using System.IO; 6 using System.Linq; 7 using System.Messaging; 8 using S ...
RsaBaseParameters using System.Security.Cryptography; using System.Text; namespace Benchint.Util.Rsa.Models { /// <summary> /// RSA基础参数 /// </summary> ...
分类:
其他好文 时间:
2021-01-11 10:35:30
阅读次数:
0
问题描述: ssh连接通过ipsec后连接卡住;ssh -vvv显示: echo "1420" > /sys/class/net/eth0/mtu #把mtu值设置一下默认是1500,临时生效 修改网卡配置,永久生效: vi /etc/sysconfig/network-scripts/ifcfg- ...
分类:
其他好文 时间:
2021-01-08 11:40:33
阅读次数:
0
尝试环境:.netfx2.0~4.8、.net core 3.1~5.0、SQL Server 2008 R2 SP1,发现.net版本之间及数据兼容模式如何设置没差异。 FlagNameValueDescription 1 DISABLE_DEF_CNST_CHK Controls interim ...
分类:
数据库 时间:
2021-01-07 11:43:58
阅读次数:
0
1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 using namespace std; 4 #define mk make_pair 5 #define pb push_back 6 const int ...
分类:
其他好文 时间:
2021-01-06 11:49:40
阅读次数:
0
基于RHEL8/CentOS8的网络IP配置详解 rhel8与7的区别 在rhel7上,同时支持network.service和NetworkManager.service(简称NM)。默认情况下,这2个服务都有开启,但许多人都会将NM禁用掉。 在rhel8上,已废弃network.service, ...
分类:
其他好文 时间:
2021-01-05 11:41:19
阅读次数:
0
#include<iostream> #include<vector> using namespace std; vector<char>post,in; vector<char>level(100000,-1); in N; void ergodic(int root,int start,int ...
分类:
编程语言 时间:
2021-01-05 11:40:19
阅读次数:
0