HDU-1023 Train Problem II(高精度+卡特兰数) HDU-1023 Train Problem II(高精度+卡特兰数)Train Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13764 Accepted Submission(s): 7339Problem DescriptionAs we all know the Train Problem I, the
HDU-1051 Wooden Sticks(简单的贪心策略) HDU-1051 Wooden Sticks(简单的贪心策略)Wooden SticksTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30840 Accepted Submission(s): 12534Problem DescriptionThere is a pile of n wooden sticks. The length
HDU 1007 最近点对问题 Quoit Design(分治+贪心) HDU Quoit Design(分治+贪心)Quoit DesignProblem DescriptionHave you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the field of Cyberground, the position of each toy is
HDU-1055 Color a Tree(贪心策略) HDU-1055 Color a Tree(贪心策略) Color a TreeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3691 Accepted Submission(s): 1359Problem DescriptionBob is very interested in
卡特兰数(catalan数)总结 (卡特兰大数、卡特兰大数取模、卡特兰数应用) 卡特兰数(catalan数)总结 (卡特兰大数、卡特兰大数取模、卡特兰数应用) 本文讲解卡特兰数的各种递推公式,以及卡特兰数、卡特兰大数、卡特兰大数取模的代码实现,最后再顺带提一下卡特兰数的几个应用。 什么是卡特兰数呢?卡特兰数无非是一组有着某种规律的序列。重要的是它的应用。卡特兰数前几项为 : 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742
HDU 1007 最近点对问题 Quoit Design(分治+贪心) HDU 1007 Quoit Design(分治+贪心)Quoit DesignProblem DescriptionHave you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the field of Cyberground, the position of each t
HDU The Embarrassed Cryptographer 2303(同余模+线筛) HDU The Embarrassed Cryptographer 2303(同余模+线筛)The Embarrassed CryptographerProblem DescriptionThe young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands of users, which is now in use in his c
HDU Farm Irrigation 1198(bfs联通块或并查集) HDU Farm Irrigation 1198Problem DescriptionBenny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square has a different type of pipe. There
2021-2-24队内个人赛 2021-2-24对内个人赛A题 CodeForces - 1303A#include<bits/stdc++.h>#define INF 0x3f3f3f3fusing namespace std;typedef long long ll;char s[105];int main(){ int t; scanf("%d",&t); while(t--) { scanf("%s",s+1); int an
2021-2-22 队内个人赛 2021-2-22 个人赛A题 CodeForces 1005B简单思维两个字符串 从左边删除 问一个删除多少个后两个字符串相同(或者空)思路就是从后面遍历 找出两个字符串相同的后缀大小 然后用两个字符串总长度去减#include<cstdio>#include<iostream>#include<string>#include<cstring>#include<cmath>#include<algorithm>
12.18 20届第二次周测 12.18 ZJYC 20届第二次周测HDU 2002 计算球的体积简单的基础运算,今日签到题。#include<stdio.h>#define PI 3.1415927int main(){ double r; while(~scanf("%lf",&r)){ printf("%.3lf",4*PI*r*r*r/3); } return 0;}HDU 2081 手机短号考察对字符数组的一个使用。`#include
12.11 20届第一次周测 ZJYC 20届第一次周测HDU 1000 a+b problem考察多组输入的使用。#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d",&a,&b)){ printf("%d",a+b); } return 0;} HDU 2033 人见人爱A+B给n组数据,一组两个时分秒相加,求相加结果,注意分和秒遇60
关于2020acm-ccpc长春站参赛有感 2020acm-ccpc长春站2020年11月8号身为大二的我第一次参加ccpc长春站,满怀希望的我兴致勃勃的开始这场比赛。一开始的A题我们一看就共同认为是贪心策略,后来wa了发现并不是这样,应该采用暴力的模式枚举,尽管我们用了多重背包的方法将此题a了出来,但是由于时间问题我们 处于落后,后来跟着榜看了d题,队友们推了好久,代码样例过了,却wa了,在我们反复思考中,电脑突然蓝屏了,我们连忙重启和重新请求登录 ,这让我们队员的心态出了问题,浪费了半个小时后,我们连上了,也是飞快的敲了起来,在不断对拍校队后,
第十七届中国计量大学程序设计竞赛 H Happy Time is Always Short 第十七届中国计量大学程序设计竞赛 H Happy Time is Always Short题目链接:https://ac.nowcoder.com/acm/contest/7591/H来源:牛客网题目描述The happy time is always short. The party comes to an end, and the security guard GYQ can finally rest for a while. He was so miserable in the beginn
第十七届中国计量大学程序设计竞赛 K Known-Well Palindrome Date-Easy Version K Known-Well Palindrome Date-Easy Version链接:https://ac.nowcoder.com/acm/contest/7591/K来源:牛客网题目描述This problem is almost the same as the next one, but has different requirement and constraints.As time flies by, the composition of our society is always c
第十七届中国计量大学程序设计竞赛 I- Isolated Pointset 第十七届中国计量大学程序设计竞赛 I- Isolated Pointset(签到题)链接:https://ac.nowcoder.com/acm/contest/7591/I来源:牛客网On a two-dimensional plane, YHH has a series of isolated points named PointSet, which contains N points in it. YHH would like to know if there is a way to draw
第十七届中国计量大学程序设计竞赛 D Dessert Time 第十七届中国计量大学程序设计竞赛 D Dessert Time题目描述The party began, the greasy uncle was playing cards, the fat otaku was eating, and the little beauty was drawing.Because there were too many steaks just grilled, ZJH found that he could not finish it, so he gave some o
第十七届中国计量大学程序设计竞赛 C -Cook Steak 第十七届中国计量大学程序设计竞赛 C -Cook Steak(签到题)题目The party began, the greasy uncle was playing cards, the fat otaku was eating, and the little beauty was drawing.After playing cards for a while, ZJH felt very hungry. He decided to let the automatic kitchen grill st
第十七届中国计量大学程序设计竞赛 B- Broken Pad 第十七届中国计量大学程序设计竞赛 B -Broken Pad题目链接:https://ac.nowcoder.com/acm/contest/7591/B来源:牛客网题目描述The party began, the greasy uncle was playing cards, the fat otaku was eating, and the little beauty was drawing.Playing cards is an indispensable and irreplaceab