- 博客(20)
- 收藏
- 关注
原创 HDU 5720
WoolTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 588 Accepted Submission(s): 167Problem Description At dawn, Venus sets a second task
2016-07-18 16:22:05
395
原创 Codeforces 690C2 Brain Network (medium) (树的直径)
Brain Network (medium)time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputFurther research on zombie thought processes yielded interestin
2016-07-11 09:40:09
887
原创 Codeforces 690D2 The Wall (medium)
The Wall (medium) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputHeidi the Cow is aghast: cracks in the northern Wall? Zombies gath
2016-07-11 08:51:37
933
转载 HDU 1423 (最长上升公共子序列)
Greatest Common Increasing SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6492 Accepted Submission(s): 2112Problem Description
2016-07-10 15:44:34
406
原创 二叉排序树
二叉排序树总时间限制: 1000ms 内存限制: 128000kB描述依次给出n(0<n<=100000)个整数,请你以这n个数创建一棵二叉排序树,这棵排序树的根节点为第一个数,并输出其中序遍历和后序遍历。 输入 共两行,第一行为整数n,第二行为n个整数 输出 共两行,第一行为中序遍历,第二行为后序遍历 样例输入8 23 45 12 6 7 89 13
2016-07-10 11:39:47
993
原创 Codeforces #3 A Shortest path of the king
题目链接 http://codeforces.com/problemset/problem/3/A 走过的格的值相乘后后缀的0最少,统计路径中中 2和5最少的数就行,有值0的话看另外判断,可能有路径后缀的0没有。 下面ac代码#include <cstdio> #include <cstring> #include <cmath> #include <iostream> #include <st
2016-06-07 20:16:37
338
原创 HDU 2089 不要62
不要62Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 32155 Accepted Submission(s): 11416Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交
2016-06-07 20:10:19
300
原创 Codeforces #1 C. Ancient Berland Circus
题目链接http://codeforces.com/problemset/problem/1/C 一道几何题以前高中学的三角形的知识(好吧,有的结论还是看大神们写的) 要用到的知识注释了 注意用正玄定理的时用两条较小边带入公式#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<algori
2016-06-07 19:59:28
421
原创 Codeforces #1 B. Spreadsheets
题目链接 26进制的问题, 坑点在于这道题进制中没有 0 有26(z)注意到这点就可以水过了#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cstdlib> #define ll long long using namespace std; char str[3000005]; c
2016-06-07 19:54:33
386
原创 Codeforces #353(div2)B.Restoring Painting
题目链接http://codeforces.com/problemset/problem/675/B水过#include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<queue> #include<cstdlib> #define ll long long using namespace std;
2016-06-07 19:51:26
320
原创 Codeforces #353 (div2)A. Infinite Sequence
题目链接http://codeforces.com/problemset/problem/675/A一道大水题#include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<queue> #include<cstdlib> #define ll long long using namespace st
2016-06-07 19:46:55
364
原创 Codeforces #1 A
Codeforces #353 B. Restoring Painting题目链接确定中间的数再确定四个角的最小数就行了#include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<queue> #include<cstdlib> #define ll long long using namespa
2016-06-07 19:38:05
307
原创 Bestcoder #80 B
Segment Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) 问题描述 \ \ \ \ Rivendell非常神,喜欢研究奇怪的问题. \ \ \ \ 今天他发现了一个有趣的问题.找到一条线段x+y=qx+y=q,令它和坐标轴
2016-04-19 10:41:29
869
原创 bestcoder #79 div2 A
jrMz and angles Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) 问题描述 jrMz有两种角,第一种角都是正nn边形的内角,第二种角都是正mm边形的内角。jrMz想选出其中一些,某种角可以选多个或一个都不选,使得选出的所有角的度数之和恰好
2016-04-16 12:07:35
323
原创 codeforces 660A
A. Co-prime Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an array of n elements, you
2016-04-14 13:18:20
384
原创 数论练习
Language: Default 青蛙的约会 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 103143 Accepted: 20017 Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同
2016-04-14 13:05:43
448
原创 蓝桥杯初赛9
有N个瓶子,编号 1 ~ N,放在架子上。 比如有5个瓶子: 2 1 3 5 4 要求每次拿起2个瓶子,交换它们的位置。 经过若干次后,使得瓶子的序号为: 1 2 3 4 5 对于这么简单的情况,显然,至少需要交换2次就可以复位。 如果瓶子更多呢?你可以通过编程来解决。 输入格式为两行: 第一行: 一个正整数N(N 第二行:N个正整数,用
2016-04-09 18:09:30
439
原创 蓝桥杯初赛第三题
凑算式 B DEF A + --- + ------- = 10 C GHI (如果显示有问题,可以参见【图1.jpg】) 这个算式中A~I代表0~9的数字,不同的字母代表不同的数字。 比如: 6+8/3+952/714 就是一种解法, 5+3/1+972/486 是另一种解法。 这个算式一
2016-04-09 17:49:15
347
原创 山西蓝桥B1
煤球数目 有一堆煤球,堆成三角棱锥形。具体: 第一层放1个, 第二层3个(排列成三角形), 第三层6个(排列成三角形), 第四层10个(排列成三角形), .... 如果一共有100层,共有多少个煤球? 请填表示煤球总数目的数字。 注意:你提交的应该是一个整数,不要填写任何多余的内容或说明性文字。 #include #include using namespace std
2016-04-06 08:29:55
890
原创 山西省蓝桥杯B2
生日蜡烛 某君从某年开始每年都举办一次生日party,并且每次都要吹熄与年龄相同根数的蜡烛。 现在算起来,他一共吹熄了236根蜡烛。 请问,他从多少岁开始过生日party的? 请填写他开始过生日party的年龄数。 注意:你提交的应该是一个整数,不要填写任何多余的内容或说明性文字。 #include using namespace std; int main() {
2016-04-06 08:24:36
995
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅