自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

snowy_smile的博客

终于在ICPC World Final里拿到了气球! 再努力一点吧,坚持下去吧,梦想是会实现的! 人生会有低谷,但我更相信,未来也会有更多梦想能够实现~ (以后还会继续更新题解~ 2019.09.30)

  • 博客(570)
  • 收藏
  • 关注

原创 【HDU5718 BestCoder 2nd AnniversaryA】【水题 高精度拆数相加】Oracle 正整数拆2正整数使得和最大

OracleTime Limit: 8000/4000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 536    Accepted Submission(s): 232Problem DescriptionThere is once a king an

2016-07-18 15:05:05 533

原创 【Codeforces Round 354 (Div 2)E】【数学 多项式除法 讨论】The Last Fight Between Human and AI 多项式除以x-k是否值整除

E. The Last Fight Between Human and AItime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output100 years have passed

2016-05-27 14:14:58 1018

原创 【Codeforces Round 354 (Div 2)D】【迷宫搜索BFS】Theseus and labyrinth 门门互达 可做旋转操作 最少步数起点到终点

D. Theseus and labyrinthtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputTheseus has just arrived to Crete

2016-05-27 13:23:05 817

原创 【Codeforces Round 354 (Div 2)C】【前缀和二分or双指针】Vasya and String ab序列最多改变k位置的最长同字符子串长度

C. Vasya and Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHigh school student Vasya got a string o

2016-05-27 13:21:29 929

原创 【Codeforces Round 354 (Div 2)B】【简单模拟】Pyramid of Glasses 漏斗漏水n层t秒灌满多少个

B. Pyramid of Glassestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMary has just graduated from one well-

2016-05-27 13:20:24 1285

原创 【Codeforces Round 354 (Div 2)A】【水题 贪心】Nicholas and Permutation 恰好交换一次的pos[n]-pos[1]

A. Nicholas and Permutationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNicholas has an array a that con

2016-05-27 13:18:52 742 2

原创 【2016杭电女生赛1010】【旅行商问题DP + 贪心】Ingress 最多走L距离 最多hackK次 的最大得分

#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin

2016-05-22 23:45:34 1156

原创 【2016杭电女生赛1009】【挖掘本质找关系 模拟】sum 找到最小的正整数,满足a乘sum(n)==b乘S(2n)

#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin

2016-05-22 23:44:23 1350 2

原创 【2016杭电女生赛1008】【数据结构 动态节点线段树】Claris Loves Painting

#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin); freope

2016-05-22 23:42:00 1540

原创 【2016杭电女生赛1007】【博弈 打表找规律】Alice and Bob 可走k步斜对角线的胜负态

#include #include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin); freop

2016-05-22 23:36:08 1628 5

原创 【2016杭电女生赛1006】【DP 类似LCS】Combine String 字符串c拆子串 能否恰好分成a与b

#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin

2016-05-22 22:53:27 1112 3

原创 【2016杭电女生赛1005】【暴力 bfs or dfs or 模拟】girlcat 数女生数和猫咪数

#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define MS(x,y) memset(x,y,sizeof(x))#define MC(x,y) memcpy(x

2016-05-22 22:35:50 1065

原创 【2016杭电女生赛1004】【枚举 数学解方程】Clock 下一时刻时针分针恰成角度

#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin); freope

2016-05-22 22:01:31 928

原创 【2016杭电女生赛1003】【暴力】Luck Competition 选数平均数乘2除3 小且最接近的数

#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin

2016-05-22 21:34:20 1123

原创 【2016杭电女生赛1002】【排列组合 隔板法】Desert 对n做正整序列拆分的方案数

#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin

2016-05-22 21:21:38 1154

原创 【2016杭电女生赛1001】【C语言签到题】Solving Order

#include#include#include#includeusing namespace std;const int N = 12, M = 0, Z = 1e9 + 7, ms63 = 0x3f3f3f3f;int casenum, casei;int n, m;paira[N];void solve(){ scanf("%d", &casenum); for (c

2016-05-22 21:15:23 1626

原创 【ZOJ3947 The 13th Zhejiang Provincial Collegiate Programming ContestL】【水题】Very Happy Great BG 简单求和

Very Happy Great BGTime Limit: 2 Seconds      Memory Limit: 65536 KB The summer training of ZJU ICPC in July is about to end. To celebrate this great and happy day, the coach of ZJU ICPC T

2016-04-26 18:48:24 547

原创 【ZOJ3946 The 13th Zhejiang Provincial Collegiate Programming ContestK】【最短路+贪心 or 最小树形图】Highway Proje

Highway ProjectTime Limit: 2 Seconds      Memory Limit: 65536 KB Edward, the emperor of the Marjar Empire, wants to build some bidirectional highways so that he can reach other cities from

2016-04-26 18:47:55 661

原创 【ZOJ3944 The 13th Zhejiang Provincial Collegiate Programming ContestI】【简单模拟】People Counting 照片人数统计 人

People CountingTime Limit: 2 Seconds      Memory Limit: 65536 KB In a BG (dinner gathering) for ZJU ICPC team, the coaches wanted to count the number of people present at the BG. They did th

2016-04-26 18:47:06 690

原创 【ZOJ3941 The 13th Zhejiang Provincial Collegiate Programming ContestF】【贪心 暴力】Kpop Music Party n段part

Kpop Music PartyTime Limit: 2 Seconds      Memory Limit: 65536 KB Marjar University often hosts Kpop music festival. A Kpop music festival will last several days. During a Kpop festival, t

2016-04-26 18:45:58 1077

原创 【ZOJ3940 The 13th Zhejiang Provincial Collegiate Programming ContestE】【脑洞 STL-MAP 复杂度分析 区间运算思想 双指针】M

Modulo QueryTime Limit: 2 Seconds      Memory Limit: 65536 KB One day, Peter came across a function which looks like:F(1, X) = X mod A1.F(i, X) = F(i - 1, X) mod Ai, 2 ≤ i ≤ N.Where

2016-04-26 18:45:13 1148 2

原创 【ZOJ3939 The 13th Zhejiang Provincial Collegiate Programming ContestD】【日期前缀和预处理】The Lucky Week 第n个幸运

The Lucky WeekTime Limit: 2 Seconds      Memory Limit: 65536 KB Edward, the headmaster of the Marjar University, is very busy every day and always forgets the date.There was one day Ed

2016-04-26 18:43:58 788

原创 【ZOJ3938 The 13th Zhejiang Provincial Collegiate Programming ContestC】【简单模拟】Defuse the Bomb 5个阶段正确决策

Defuse the BombTime Limit: 2 Seconds      Memory Limit: 65536 KB The bomb is about to explode! Please defuse it as soon as possible!There is a display showing a number from 1 to 4 on the

2016-04-26 18:42:46 597

原创 【ZOJ3936 The 13th Zhejiang Provincial Collegiate Programming ContestA】【水题】Apples and Ideas 苹果交换与思想交换

Apples and IdeasTime Limit: 2 Seconds      Memory Limit: 65536 KB "If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But

2016-04-26 10:12:58 486

原创 【ZOJ3935 The 16th Zhejiang University Programming ContestI】【暴力 水题】2016 找寻triangular-hexagonal-leap y

2016Time Limit: 2 Seconds      Memory Limit: 65536 KBIn mathematics, a polygonal number is a number represented as dots or pebbles arranged in the shape of a regular polygon. The dots are thou

2016-04-12 13:13:14 895 1

原创 【ZOJ3933 The 16th Zhejiang University Programming ContestG】【费用流】Team Formation 最多组队条件下女

Team FormationTime Limit: 2 Seconds      Memory Limit: 65536 KB      Special JudgeFor an upcoming programming contest, Edward, the headmaster of Marjar University, is forming several two-man

2016-04-12 13:12:42 693

原创 【ZOJ3932 The 16th Zhejiang University Programming ContestF】【水题】Handshakes 每人与之前认识的人握手 最大可能认识人数

HandshakesTime Limit: 2 Seconds      Memory Limit: 65536 KBLast week, n students participated in the annual programming contest of Marjar University. Students are labeled from 1 to n. They cam

2016-04-12 13:11:48 978

原创 【ZOJ3931 The 16th Zhejiang University Programming ContestE】【小根堆 哈夫曼树 DP】Exact Compression 建立哈弗曼树并编码0

#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin

2016-04-12 13:09:16 1109

原创 【ZOJ3930 The 16th Zhejiang University Programming ContestD】【模拟】Dice Notation 表达式转化标准格式

Dice NotationTime Limit: 2 Seconds      Memory Limit: 65536 KB... I want to get some water from this strange lake. I have a bottle. OK. Then I want to go forward to look into the parte

2016-04-12 13:08:25 684

原创 【ZOJ3929 The 16th Zhejiang University Programming ContestC】【DP】Deque and Balls n个数放入双端队列2^n种方案有多少个位置

Deque and BallsTime Limit: 2 Seconds      Memory Limit: 65536 KBThere are n balls, where the i-th ball is labeled as pi. You are going to put n balls into a deque. In the i-th turn, you ne

2016-04-12 13:07:18 734

原创 【ZOJ3927 The 16th Zhejiang University Programming ContestA】【水题】Programming Ability Test 简单求和比大小

Programming Ability TestTime Limit: 2 Seconds      Memory Limit: 65536 KBProgramming Ability Test (PAT) aims to evaluate objectively, through unified examinations with automatic online judgi

2016-04-12 12:58:16 888

原创 【GoogleCodeJam2016D】【构造 找规律】Fractiles LG字符串K字符C次变为S个检测位置找金子

Problem D. FractilesThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Guide

2016-04-11 16:23:29 1538

原创 【GoogleCodeJam2016C】【java 二进制枚举爆搜】Coin Jam n位01数转变为n进制

import java.util.*;import java.math.*;public class Main{ static Scanner cin = new Scanner(System.in); public static void main(String[] args) { //预处理素数 int prime[] = { 2,3,5,7,11,13,17,19,23,

2016-04-10 12:29:38 908

原创 【GoogleCodeJam2016B】【贪心】Revenge of the Pancakes -+改变并翻转 最小操作次数使得字符串变为全+

Revenge of the PancakesThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Gu

2016-04-10 12:28:30 1325

原创 【GoogleCodeJam2016A】【暴力】Counting Sheep x的倍数从小向大增加直到出现0~9所有数的最小倍增终点

Counting SheepThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Guide to ge

2016-04-10 12:27:43 1098

原创 【hihocoder1291 微软2016校园招聘4月在线笔试D】【逆序思维 并查集】Buiding in Sandbox 我的世界建方块合法性判定

Building in Sandbox时间限制:30000ms单点时限:3000ms内存限制:256MB描述Little Hi is playing a sandbox voxel game. In the game the whole world is constructed by massive 1x1x1 cubes. The ed

2016-04-10 12:23:26 2237

原创 【hihocoder1290 微软2016校园招聘4月在线笔试C】【二维DP】 Demo Day 机器人遇到障碍向右走向下走 最少调整数使得左上角走到右下角

Demo Day时间限制:10000ms单点时限:1000ms内存限制:256MB描述You work as an intern at a robotics startup. Today is your company's demo day. During the demo your company's robot will be put

2016-04-10 12:15:08 849

原创 【VK Cup 2016 - Round 1 (Div 2 Edition)E】【目标线思想差值相减 优先队列】Bear and Contribution c5成本+5 c1成本+1使得至少k人贡献相

Bear and Contributiontime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCodeforces is a wonderful platform an

2016-04-04 20:28:37 1067 1

原创 【VK Cup 2016 - Round 1 (Div 2 Edition)D】【二进制思想 扫描贪心】Bear and Polynomials 2的幂次多项式改变一位使得和为0

Bear and Polynomialstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a little polar bear. He doesn

2016-04-04 18:47:07 704

原创 【VK Cup 2016 - Round 1 (Div 2 Edition)C】【构造】Bear and Forgotten Tree 3 构造一棵树直径为d且点1的深度为h

Bear and Forgotten Tree 3time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA tree is a connected undirected

2016-04-04 18:45:46 1128

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除