摘要: C. Do you want a date? 2 seconds 256 megabytes C. Do you want a date? 2 seconds 256 megabytes Leha decided to move to a quiet town Vičkopolis, because 阅读全文
posted @ 2017-05-28 00:36 gaoyanliang 阅读(424) 评论(0) 推荐(1) 编辑
摘要: A. Vladik and Courtesy 2 seconds 256 megabytes A. Vladik and Courtesy 2 seconds 256 megabytes At regular competition Vladik and Valera won a and b can 阅读全文
posted @ 2017-05-27 23:51 gaoyanliang 阅读(196) 评论(0) 推荐(0) 编辑
摘要: D. Minimum number of steps time limit per test 1 second memory limit per test 256 megabytes D. Minimum number of steps time limit per test 1 second ti 阅读全文
posted @ 2017-05-25 16:20 gaoyanliang 阅读(483) 评论(0) 推荐(1) 编辑
摘要: C. Find Amir time limit per test 1 second memory limit per test 256 megabytes C. Find Amir time limit per test 1 second time limit per test memory lim 阅读全文
posted @ 2017-05-25 11:31 gaoyanliang 阅读(216) 评论(0) 推荐(0) 编辑
摘要: B. Summer sell-off time limit per test 1 second memory limit per test 256 megabytes B. Summer sell-off time limit per test 1 second time limit per tes 阅读全文
posted @ 2017-05-24 13:32 gaoyanliang 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 时间限制:2000ms 单点时限:1000ms 内存限制:256MB 时间限制:2000ms 单点时限:1000ms 内存限制:256MB 描述 给定两个日期,计算这两个日期之间有多少个2月29日(包括起始日期)。 只有闰年有2月29日,满足以下一个条件的年份为闰年: 1. 年份能被4整除但不能被1 阅读全文
posted @ 2017-05-21 04:04 gaoyanliang 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 什么是运算符: 运算符是一种“功能”符号,用以通知 Java 进行相关的运算。譬如,我们需要将变量 age 的值设置为 20 ,这时候就需要一个“=”,告诉程序需要进行赋值操作。 Java 语言中常用的运算符可分为如下几种: Ø 算术运算符 Ø 赋值运算符 Ø 比较运算符 Ø 逻辑运算符 Ø 条件运 阅读全文
posted @ 2017-05-20 17:35 gaoyanliang 阅读(507) 评论(0) 推荐(0) 编辑
摘要: Java中的关键字: Java 语言中有一些具有特殊用途的词被称为关键字。关键字对 Java 的编译器有着特殊的意义,在程序中应用时一定要慎重哦!! Java 中常用关键字: 问:这么多,记不住啊。。。。。。-_-|| 答:现在不需要你记住所有,混个眼熟即可,在学习的过程中,你会逐步找到感觉并记住他 阅读全文
posted @ 2017-05-20 16:38 gaoyanliang 阅读(333) 评论(0) 推荐(0) 编辑
摘要: A. Bank Robbery time limit per test 2 seconds memory limit per test 256 megabytes A. Bank Robbery time limit per test 2 seconds time limit per test me 阅读全文
posted @ 2017-05-17 19:57 gaoyanliang 阅读(389) 评论(0) 推荐(0) 编辑
摘要: B. T-shirt buying time limit per test 3 seconds memory limit per test 256 megabytes B. T-shirt buying time limit per test 3 seconds time limit per tes 阅读全文
posted @ 2017-05-17 19:02 gaoyanliang 阅读(339) 评论(0) 推荐(0) 编辑
摘要: set集合容器: 实现了红黑树(Red-Black Tree)的平衡二叉检索树的数据结构,在插入元素时, 它会自动调整二叉树的排列,把该元素放到适当的位置,以确保每个子树根节点的键值大于左子树所有节点的键值, 而小于右子树所有节点的键值;另外,还得确保根节点的左子树的高度与有字数的高度相等, 这样, 阅读全文
posted @ 2017-05-17 14:11 gaoyanliang 阅读(21004) 评论(7) 推荐(4) 编辑
摘要: B. 3-palindrome time limit per test 1 second memory limit per test 256 megabytes B. 3-palindrome time limit per test 1 second time limit per test memo 阅读全文
posted @ 2017-05-16 13:52 gaoyanliang 阅读(340) 评论(0) 推荐(0) 编辑
摘要: A. Fake NP time limit per test 1 second memory limit per test 256 megabytes A. Fake NP time limit per test 1 second time limit per test memory limit p 阅读全文
posted @ 2017-05-16 13:31 gaoyanliang 阅读(239) 评论(0) 推荐(0) 编辑
摘要: A. Carrot Cakes time limit per test 1 second memory limit per test 256 megabytes A. Carrot Cakes time limit per test 1 second time limit per test memo 阅读全文
posted @ 2017-05-12 08:24 gaoyanliang 阅读(582) 评论(0) 推荐(0) 编辑
摘要: B. T-Shirt Hunt time limit per test 2 seconds memory limit per test 256 megabytes B. T-Shirt Hunt time limit per test 2 seconds time limit per test me 阅读全文
posted @ 2017-05-09 22:31 gaoyanliang 阅读(405) 评论(0) 推荐(0) 编辑
摘要: A. Is it rated? time limit per test 2 seconds memory limit per test 256 megabytes A. Is it rated? time limit per test 2 seconds time limit per test me 阅读全文
posted @ 2017-05-08 23:21 gaoyanliang 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 很早就听说acmer界的CF嘞!还记得刚开始听到神犇们在讨论CF的时候我还以为是网游CF(穿越火线)呢。。。 今年刚开学的时候就打算开始打cf的,由于一些事情耽搁了。之后又要准备省赛所以就一直拖到现在(其实还是自己懒) 今年省赛的时候再一次听到强校的神犇们说起了cf,于是结束之后立马就跑去注册啦一个 阅读全文
posted @ 2017-05-08 21:04 gaoyanliang 阅读(516) 评论(3) 推荐(1) 编辑
摘要: Triangles Problem Description 已知一个圆的圆周被 N 个点分成了 N 段等长圆弧,求任意取三个点,组成锐角三角形的个数。 Input 多组数据。 每组数据一个N (N ≤ 1000000)。 多组数据。 每组数据一个N (N ≤ 1000000)。 Output 对于每 阅读全文
posted @ 2017-04-30 18:13 gaoyanliang 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 吝啬的国度 吝啬的国度 阅读全文
posted @ 2017-04-26 22:55 gaoyanliang 阅读(297) 评论(1) 推荐(1) 编辑
摘要: Repeat Number 题目描述: Definition: a+b = c, if all the digits of c are same ( c is more than ten), then we call a and b are Repeat Number. My question is 阅读全文
posted @ 2017-04-25 22:19 gaoyanliang 阅读(489) 评论(0) 推荐(0) 编辑