-
8/4 网易互娱模拟笔试
8/4 网易互娱模拟笔试 说实话秋招还没准备好,没敢投网易,但是做了一下今天的模拟题。通过2.5/3吧!(网易也就是模拟题才会这么简单吧??) 第一题: 根据新税法给定多组输入,计算每个月收入应该交的税。 思路:就根据不同收入级别从高往低累计就可以啦。 #include io...
-
DP_Wooden Sticks
DP_Wooden Sticks There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to p...
-
浅谈高精度算法(加减乘除)
浅谈高精度算法(加减乘除) 在C/C++中,不时会遇到限定数据范围的情况,我们先来看看常用的int和long long两种数据类型的范围吧。 C++标准规定,int占一个机器字长。在32位系统中int占32位,也就是4个字节,所以在32位系统中,int的范围是[-2^31,2^31-1],为10^9数量...
-
洛谷 P2085 最小函数值
洛谷 P2085 最小函数值 目录 题目 思路 $Code$ 题目 戳 思路 首先这些函数全部单带递增,因为$a$,$b$,$c$都是正整数。 我们将全部的函数的$x$为$1$时的函数值放入优先度列(小根堆),然后输出并弹出堆顶元素,将该函数的$x++$再将函数值放入优先队列。 $Code$ #incl...
-
DP_Milking Time
DP_Milking Time Bessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her next N (1 N 1,000,000) hours (conveniently labeled 0.. N -1) so that she produces as much milk as possible....
-
QTableView表格控件区域选择-自绘选择区域
QTableView表格控件区域选择-自绘选择区域 目录 一、开心一刻 二、概述 三、效果展示 四、实现思路 1、绘制区域 2、绘制边框 3、绘制 五、相关文章 原文链接: QTableView表格控件区域选择-自绘选择区域 一、开心一刻 陪完客户回到家,朦胧之中,看到我妈正在拖地,我...
-
洛谷 P2947 [USACO09MAR]向右看齐Look Up
洛谷 P2947 [USACO09MAR]向右看齐Look Up 目录 题目 思路 $Code$ 题目 戳 思路 单调栈裸题 $Code$ #includestack#includecstdio#includestring#includecstring#includeiostream#define MAXN 100001#define rr registerusing namespace std;int n,ans[MAXN];struct mu{...
-
洛谷 P1901 发射站
洛谷 P1901 发射站 目录 题目 思路 $Code$ 题目 戳 思路 利用单调栈求出比他高的发射站中离它最近的哪一个,在暴力加一下,求出最终答案。 $Code$ #includebits/stdc++.h#define max_(a,b) ab?a:b;#define MAXN 1000001#define rr registerusing namespace std;int n,m...
-
DP_Sumsets
DP_Sumsets Farmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that are an integer power of 2. Here are the possible sets of numbers that sum to 7: 1) 1+1+1+1+1+1+1 2) 1+1+1+1+...
-
JZOJ.1153【贪心算法】硬币交换
JZOJ.1153【贪心算法】硬币交换 好难啊!!! 可聪明的我还是解出来了!(逃 题目描述 小z最近迷上了一款游戏――To Be A Farmer,他在游戏中控制的人物是一个叫FZ的Farmer。FZ身上有G1个金币、S1个银币和B1个铜币,而他至少需要G2个金币、S2个银币和B2个铜币。为了完...
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
