- 博客(31)
- 收藏
- 关注
原创 文件操作SaveFileDialog的用法
c#获取要保存文件的对话框,用SaveFileDialog类。对于初学者可能有用//可能要获取的路径名string localFilePath = "", fileNameExt= "", newFileName= "", FilePath = "";SaveFileDialog saveFileDialog = new SaveFileDialog();//设置文件类型//书写规则例如:txt ...
2018-03-10 14:08:36 19653
原创 在DataGridView上添加右击事件contextMenuStrip1
首先添加contextMenuStrip控件再把DataGridView中ContextMenuStrip属性改为添加的contextMenuStrip未解决问题:DGV上的鼠标事件,MouseDown 、MouseUp、CellMouseClick等事件目前没有用到这些复杂的事件,日后有时间研究研究。。。...
2018-03-09 17:57:41 2608
原创 C# 编译生成dll文件 供程序调用
一、使用vs2017 创建动态dll文件方法一:1、新建-项目-类库2、创建一个.cs文件 写入代码,例如:建立一个Windows窗体略丑,简单明了。。。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using...
2018-03-09 14:47:38 5300
原创 CF 710C Magic Odd Square
C. Magic Odd Squaretime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFind an n × n matrix with different numb
2016-09-02 20:42:45 289
原创 CSU 1716 Morse
1716: MorseTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 150 Solved: 92[Submit][Status][Web Board]DescriptionInputOutputSample InputA .-
2016-09-01 20:28:43 173
原创 CSU 1715 Positive Con Sequences
Positive Con SequencesTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 554 Solved: 118[Submit][Status][Web Board]DescriptionInputOutputSample
2016-09-01 19:17:32 381
原创 PHP MySQL学习
1、数据库连接<?php$con = mysqli_connect('127.0.0.1', 'root', 'abc123456');//检查连接是否成功if (!$link){ //注意mysqli_connect_error()新特性 die('Unable to connect!'). mysqli_connect_error();}else{ e
2016-08-08 15:28:56 270
原创 poj-3270 Cow Sorting 置换群
http://poj.org/problem?id=3270Cow SortingTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 6875 Accepted: 2699DescriptionFarmer John's N (1 ≤ N
2016-08-02 16:36:34 249
原创 poj-1751 Highways 最小生成树
http://poj.org/problem?id=1751HighwaysTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13180 Accepted: 3813 Special JudgeDescriptionThe isl
2016-08-02 10:16:47 213
原创 poj-1847 Tram 最短路
http://poj.org/problem?id=1847TramTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 13437 Accepted: 4944DescriptionTram network in Zagreb consis
2016-07-28 14:04:55 204
原创 The kth great number 优先队列
http://acm.hdu.edu.cn/showproblem.php?pid=4006The kth great numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 10007 Accepted
2016-07-27 15:42:50 201
原创 Jeff and Periods
Jeff and PeriodsTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOne day Jeff got hold of an integer sequence a1, a2, ..., an of
2016-07-26 15:05:05 302
原创 RMQ with Shifts
RMQ with ShiftsTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format:Submit StatusDescriptionIn the traditional RMQ (Range Minimum Query) problem, we have a
2016-07-24 09:29:37 185
原创 hdu-1022 栈、队列
http://acm.hdu.edu.cn/showproblem.php?pid=1022Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31541 Accepted Submi
2016-07-21 09:28:04 188
原创 poj-2955 括号匹配--简单区间dp
http://poj.org/problem?id=2955BracketsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5970 Accepted: 3183DescriptionWe give the following in
2016-07-20 16:10:28 255
原创 UVA - 10534
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=147510534 - Wavio SequenceTime limit: 3.000 secondsWavio is a sequence of integers. It has
2016-07-19 15:28:12 186
原创 hdu-1072
http://acm.hdu.edu.cn/showproblem.php?pid=1072NightmareTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9853 Accepted Submission
2016-07-19 15:25:48 200
原创 POJ - 1850 排列组合
http://poj.org/problem?id=1850CodeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 9259 Accepted: 4419DescriptionTransmitting and memorizing in
2016-07-17 16:28:17 276
原创 hdu-1081 To The Max (最大子矩阵和)
http://acm.hdu.edu.cn/showproblem.php?pid=1081To The MaxTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11309 Accepted Submission(s
2016-07-17 16:19:18 221
原创 hdu-1559 最大子矩阵
http://acm.hdu.edu.cn/showproblem.php?pid=1559最大子矩阵Time Limit: 30000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4060 Accepted Submission(s): 2
2016-07-17 16:17:07 239
原创 欧几里得 与 扩展欧几里得
欧几里得算法又称辗转相除法,用来计算两个数的最大公约数int gcd(int a, int b){ if(b==0) return a; else return gcd(b,a%b);}gcd函数的基本性质gcd(a,b)=gcd(b,a)=gcd(-a,b)=gcd(|a|,|b|)gcd(a,b)=g
2016-07-17 16:14:27 260
原创 扩展欧几里得-逆元 浙江2012年省赛J题 Modular Inverse
扩展欧几里得-逆元 浙江2012年省赛J题 Modular InverseModular InverseTime Limit: 2000MS Memory Limit: 65535KB 64bit IO Format:Submit StatusDescriptionThe modul
2016-07-17 16:11:14 172
原创 poj-1006 中国剩余定理
中国剩余定理:求解一次同余式组对于特殊的中国剩余定理:即要求m[1],m[2].....m[n]两两互素int fun(int a[], int m[], int n){ int M = 1; int i; for(i=0; i<n; i++){ M *= m[i]; } int X = 0; for(i=0;
2016-07-17 16:07:08 325
原创 poj-1284 欧拉函数
欧拉函数定义:对于一个正整数 n ,小于 n 且和 n 互质的正整数(包括 1)的个数,记作 φ(n) 比如:n = 8 时,有 1,3,5,7 与它互质,所以 φ(8) = 4函数计算公式:φ(n)=n*(1-1/p1)*(1-1/p2)*...*(1-1/pn) ,其中p1,p2,...,pn位n的质因子易知,如果n为质数,一定有 φ(n) = n-1函
2016-07-17 16:04:30 195
原创 Super A^B mod C 快速幂+欧拉函数降幂
Super A^B mod C 同余方程Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven A,B,C, You should quickly calculate the result of A^B mo
2016-07-17 16:01:17 576
原创 poj-1222 高斯消元
http://poj.org/problem?id=1222EXTENDED LIGHTS OUTTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 8944 Accepted: 5804DescriptionIn an extended
2016-07-17 15:58:36 174
原创 hdu-2669 扩展欧几里得
http://acm.hdu.edu.cn/showproblem.php?pid=2669RomanticTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4558 Accepted Submissio
2016-07-17 15:52:05 221
原创 poj-1061青蛙的约会 扩展GCD
http://poj.org/problem?id=1061青蛙的约会Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 105098 Accepted: 20638Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必
2016-07-17 15:38:59 271
原创 hdu-1695 容斥原理+欧拉函数
http://acm.hdu.edu.cn/showproblem.php?pid=1695GCDTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9476 Accepted Submission(s): 352
2016-07-17 15:07:28 343
原创 矩阵 Fibonacci
FibonacciTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn −
2016-07-16 14:08:20 178
原创 poj-2960 SG函数
http://poj.org/problem?id=2960S-NimTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 3891 Accepted: 2037DescriptionArthur and his sist
2016-07-16 14:04:42 248
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人