摘要: Ice Sculptures CodeForces - 158D The Berland University is preparing to celebrate the 256-th anniversary of its founding! A specially appointed Vice R 阅读全文
posted @ 2019-04-02 22:01 yccdu 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Pythagorean Triples CodeForces - 707C 悉宇大大最近在学习三角形和勾股定理。很显然,你可以用三个边长为正数的线段去构造一个直角三角形,而这三个数被称作“勾股数”。 比如,(3,4,5),(5,12,13),(6,8,10)都是勾股数。 现在悉宇大大很好奇如果他能够 阅读全文
posted @ 2019-04-02 21:30 yccdu 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑