近日在做项目时,需要将查询查来的数据在richTextBox里面分行显示,但是richTextBox默认的行间距很小,显示的数据看着很挤,视觉效果差,后查找资料,发现通过以下方法能设置richTextBox的行间距。 using System.Runtime.InteropServices; 里面粘 ...
1 using Newtonsoft.Json; 2 using Newtonsoft.Json.Linq; 3 4 static void Main(string[] args) 5 { 6 TestJsonValid(); 7 Console.ReadLine(); 8 } 9 10 stati ...
题目链接 Haywire 分析 模拟退火裸题,交了 $4$ 次 \(Code\) #include<cstdio> #include<algorithm> #include<cmath> using namespace std; int n , a[15][5] , pos[15] , tmp[15 ...
分类:
其他好文 时间:
2020-10-14 20:36:25
阅读次数:
23
题目 请前往 [JSOI2004]平衡点 分析 随机算法 为何不模拟退火呢? 于是(其实目前我不懂怎么判断平不平衡) 能量越小系统越平衡 \(Code\) #include<cstdio> #include<algorithm> #include<cmath> using namespace std ...
分类:
Web程序 时间:
2020-10-14 20:33:13
阅读次数:
32
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;usi ...
B - A Tide of Riverscape CodeForces - 989B 努力把可能不一样的变成不一样的,两种情况。两个一个为“.”,一个为“1”或“0”。第二种是都为“.”。 有这样的就可以不一样。 #include<bits/stdc++.h> using namespace std ...
分类:
其他好文 时间:
2020-10-13 17:19:55
阅读次数:
14
幂集,就是一个集合的所有子集,包括空集 下面附着代码,具体实现的过程代码下面: 各部分代码如下: 首先是 headF.h(headFile的意思) 1 #pragma once 2 3 #include<cstdio> 4 #include<vector> 5 6 using namespace s ...
分类:
其他好文 时间:
2020-10-13 17:14:00
阅读次数:
20
地址:http://codeforces.com/contest/1427/problem/A 题意: 给出a[],对其进行重排列,保证不存在 b1+b2+...+bk!=0,k=1,2,3....n 解析: 脑子秀逗了,这题差点没搞出来。 首先求一下数组和sum 1:sum==0 很明显,一定不行 ...
分类:
其他好文 时间:
2020-10-13 17:04:19
阅读次数:
22
题:http://acm.hdu.edu.cn/showproblem.php?pid=3949 分析:对查询的k进行二进制分解位上线性基的异或和 #include<bits/stdc++.h> using namespace std; #define pb push_back typedef lo ...
分类:
其他好文 时间:
2020-10-12 20:30:09
阅读次数:
29
解法一 : #include <iostream> #include <cstdio> #include <algorithm> #include <string.h> using namespace std; char a[1000]; char b[1000]; void fun(char a[ ...
分类:
其他好文 时间:
2020-10-10 17:57:36
阅读次数:
27