码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
动态调用WebService服务
方法一: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Web.Services.Description; usi ...
分类:Web程序   时间:2020-11-04 17:48:18    阅读次数:35
AcWing103 电影 (排序 + 离散化)
题目链接:https://www.acwing.com/problem/content/105/ 首先对所有涉及到的语言离散化一下,统计会每种语言的人的个数 然后扫一遍电影,找到知道电影语言最多的人的那个电影 #include<cstdio> #include<algorithm> #include ...
分类:编程语言   时间:2020-11-04 17:36:35    阅读次数:17
git 命令基本使用
1、git整体流程图 2、公司代码管理仓库/自己的GitHub上的仓库(远程仓库已经存在的情况下) 1、git clone 检出远程仓库的地址 例如:git clone git@github.com:labuladong/fucking-algorithm.git 2、git pull 拉取远程代码 ...
分类:其他好文   时间:2020-11-02 10:44:36    阅读次数:33
QFNU-ACM 2020.10.23 Trating
CodeForces - 864A 题意:给偶数个卡片,给卡片编号,两个人每个人选一个号,这个人要拿走所有该号的卡片,如果所有的卡片都被拿走,并且两个人的卡片数量一样多,输出YES 和这两个序号 否则输出NO #include<algorithm> #include<iostream> #inclu ...
分类:其他好文   时间:2020-11-02 10:35:49    阅读次数:20
Codeforces Round #677 (Div. 3)【ABCDE】
比赛链接:https://codeforces.com/contest/1436 ##A.Reorder ##题解 经过模拟计算,观察到 \(\sum_{i=1}^n \sum_{j=i}^n \frac{a_j}{j}=\sum_{i=1}^n a_i\) 判断每个n个数的和sum与m是否相等即可 ...
分类:其他好文   时间:2020-11-02 10:35:02    阅读次数:17
2020.10.9个人赛补题
b题:b其实不难题意就是不让k个连续字符成为一个周期。这提给我的教训就是中文翻译应该结合英文题目一起看, #include<bits/stdc++.h>#include<algorithm>#define ll long longusing namespace std;const ll nl=1e5 ...
分类:其他好文   时间:2020-11-02 10:12:11    阅读次数:22
c#序列化反序列化
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System. ...
分类:Windows程序   时间:2020-11-01 22:06:15    阅读次数:31
分享一个Mysql操作方法类(MySql数据库连接、执行MySqlCommand命令、创建MySqlDataReader对象)
帮助类: using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using MySq ...
分类:数据库   时间:2020-11-01 21:58:38    阅读次数:29
[kuangbin带你飞]专题七 线段树
1. HDU1166 敌兵布阵 题目链接 题意:单点更新+区间查询(求和)。 树状数组 (218ms) #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <cmath> usi ...
分类:其他好文   时间:2020-11-01 21:18:27    阅读次数:19
【题解】「luoguP1064」金明的预算方案
之前在luogu上写的 仍然作为学习记录使用 这道题涉及的是背包问题,DP的一种模型。 由于我之前没有发过背包相关的题解,所以先简单讲一下。 01背包问题 有N件物品和一个容量为V的背包。第i件物品的费用是c[i],价值是w[i]。求解将哪些物品装入背包可使价值总和最大。 这时我们开一个数组叫d[i ...
分类:其他好文   时间:2020-11-01 10:22:31    阅读次数:11
18934条   上一页 1 ... 23 24 25 26 27 ... 1894 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!