上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 38 下一页
摘要: Petya and Staircases CodeForces - 362B 题意: 一个小男孩要上楼梯,他一次可以走1个台阶或2个台阶或3个台阶,但是有一些台阶是脏的,他不想走在脏台阶上。一共有n个台阶和m个脏台阶,他最开始在第1个台阶上,要走到第n个台阶。问小男孩能不能不踩到脏台阶的前提下走到n 阅读全文
posted @ 2019-04-02 21:10 yccdu 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Little Elephant and Magic Square CodeForces - 259B Little Elephant loves magic squares very much. A magic square is a 3 × 3 table, each cell contains 阅读全文
posted @ 2019-04-02 20:51 yccdu 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Verse Pattern CodeForces - 722B You are given a text consisting of n lines. Each line contains some space-separated words, consisting of lowercase Eng 阅读全文
posted @ 2019-04-02 20:49 yccdu 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Guess the Permutation CodeForces - 618B Bob has a permutation of integers from 1 to n. Denote this permutation as p. The i-th element of p will be den 阅读全文
posted @ 2019-04-02 20:47 yccdu 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Kuriyama Mirai's Stones CodeForces - 433B 有n颗宝石,每个宝石都有自己的价值。 然后m次询问。问区间[i,j]的宝石的总值,或者问排序后的区间[i,j]的总值。 Input第一行输入一个n(1 <= n <=10^5),表示n个宝石 第二行n个数,v1, v 阅读全文
posted @ 2019-04-02 20:43 yccdu 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Parallelogram is Back CodeForces - 749B 已知平行四边形的三个顶点,求第四个顶点可能的位置。Input输入有三行,每行包括两个整数x和y ( - 1000 ≤ xi, yi ≤ 1000),代表一个顶点的横纵坐标。Output输出的第一行为一个整数k,代表第四个 阅读全文
posted @ 2019-04-02 20:41 yccdu 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Inventory CodeForces - 569B Companies always have a lot of equipment, furniture and other things. All of them should be tracked. To do this, there is 阅读全文
posted @ 2019-04-02 20:39 yccdu 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 征途 HYSBZ - 4518 Pine开始了从S地到T地的征途。 从S地到T地的路可以划分成n段,相邻两段路的分界点设有休息站。 Pine计划用m天到达T地。除第m天外,每一天晚上Pine都必须在休息站过夜。所以,一段路必须在同一天中走完。 Pine希望每一天走的路长度尽可能相近,所以他希望每一天 阅读全文
posted @ 2019-04-01 22:29 yccdu 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Alyona and flowers CodeForces - 740B Little Alyona is celebrating Happy Birthday! Her mother has an array of n flowers. Each flower has some mood, the 阅读全文
posted @ 2019-04-01 20:32 yccdu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Squares CodeForces - 263B Vasya has found a piece of paper with a coordinate system written on it. There are ndistinct squares drawn in this coordinat 阅读全文
posted @ 2019-04-01 20:29 yccdu 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 38 下一页