练习
haohao_____
这个作者很懒,什么都没留下…
展开
-
Traveling
判断第i步能不能到这个地方,要求相邻两步的时间差与相邻两步的坐标和的差奇偶性相同且关系是大于Problem StatementAtCoDeer the deer is going on a trip in a two-dimensional plane. In his plan, he will depart from point (0,0) at time 0, then for each i ...原创 2018-03-12 07:49:37 · 255 阅读 · 0 评论 -
H - キャンディーと2人の子供 / Fighting over Candies
三份糖果分个两个人,能分平均就好了Problem StatementTwo students of AtCoder Kindergarten are fighting over candy packs.There are three candy packs, each of which contains a, b, and c candies, respectively.Teacher Evi i...原创 2018-03-12 07:42:48 · 335 阅读 · 0 评论 -
G - Contest with Drinks Easy
一个一维数组,计算其和,再输入几组数替换相应的位置的数就好了Problem StatementJoisino is about to compete in the final round of a certain programming competition. In this contest, there are N problems, numbered 1 through N. Joisino...原创 2018-03-12 07:39:40 · 288 阅读 · 0 评论 -
F - Addition and Subtraction Easy
注意一下输入,当时尝试了很多办法才解决的,我用了无关变量m和n存储空格Problem StatementJoisino wants to evaluate the formula "A op B". Here, A and B are integers, and the binary operator op is either + or -. Your task is to evaluate th...原创 2018-03-12 07:35:14 · 271 阅读 · 0 评论 -
C - Haiku
就是去逗号#include<stdio.h>int main(){ char a[22]; while(scanf("%c",&a[0])!=EOF) { for(int i=1;i<=19;i++) scanf("%c",&a[i]); for(int i=0;i<=4;i++) printf("%c",a[i]); pr..原创 2018-03-12 07:29:57 · 350 阅读 · 0 评论 -
A - Two Rectangles两个矩形
本题是求两个矩形中面积最大的一个Problem StatementThere are two rectangles. The lengths of the vertical sides of the first rectangle are A, and the lengths of the horizontal sides of the first rectangle are B. The le...原创 2018-03-12 07:27:15 · 306 阅读 · 0 评论 -
1279: Good morning
1279: Good morning [字符串]时间限制: 1 Sec 内存限制: 128 MB提交: 182 解决: 72 统计题目描述给定一个只有小写字母构成的非空字符串,可以从字符串中任选字符并任意规定顺序,每个字符只能用一次。最多可以构成多少个"goodmorning"子串(可以重叠)。比如说:字符串aaavbbbddgggooooooddmmrrn原创 2017-11-06 20:03:25 · 298 阅读 · 0 评论 -
FZU-2205
Sunday最近对图论特别感兴趣,什么欧拉回路什么哈密顿回路,又是环又是树。在看完一本书后,他对自己特别有信心,便找到大牛牛犇犇,希望他出一题来考考自己。在遥远的古代东方有N个城市,它们之间可以通过双向的道路相连。任意两个城市由不超过一条道路直接相连,而且没有城市的道路连向自身。但是牛犇犇是个纯情的小伙子,尽管他还没有女朋友,但他还是很讨厌第三者,以至于讨厌三这个数字。所以他希望Sun原创 2017-10-10 21:04:03 · 214 阅读 · 0 评论