随笔分类 -  模拟

摘要:You are given a matrix with nn rows (numbered from 11 to nn) and mm columns (numbered from 11 to mm). A number ai,jai,j is written in the cell belongi 阅读全文
posted @ 2020-06-13 11:17 DeaL57 阅读(241) 评论(0) 推荐(0)
摘要:The only difference between easy and hard versions is the number of elements in the array. You are given an array aa consisting of nn integers. In one 阅读全文
posted @ 2020-06-12 23:13 DeaL57 阅读(216) 评论(0) 推荐(0)
摘要:You are fighting with Zmei Gorynich — a ferocious monster from Slavic myths, a huge dragon-like reptile with multiple heads! Initially Zmei Gorynich h 阅读全文
posted @ 2020-06-12 15:15 DeaL57 阅读(248) 评论(0) 推荐(0)
摘要:Monocarp and Bicarp live in Berland, where every bus ticket consists of nn digits (nn is an even number). During the evening walk Monocarp and Bicarp 阅读全文
posted @ 2020-06-10 21:04 DeaL57 阅读(217) 评论(0) 推荐(0)
摘要:There is a white sheet of paper lying on a rectangle table. The sheet is a rectangle with its sides parallel to the sides of the table. If you will ta 阅读全文
posted @ 2020-06-10 09:42 DeaL57 阅读(182) 评论(0) 推荐(0)
摘要:Let's introduce some definitions that will be needed later. Let prime(x)prime(x) be the set of prime divisors of xx. For example, prime(140)={2,5,7}pr 阅读全文
posted @ 2020-06-08 10:33 DeaL57 阅读(147) 评论(0) 推荐(0)
摘要:You are playing a game where your character should overcome different obstacles. The current problem is to come down from a cliff. The cliff has heigh 阅读全文
posted @ 2020-06-07 10:57 DeaL57 阅读(198) 评论(0) 推荐(0)
摘要:The only difference between easy and hard versions is the maximum value of nn. You are given a positive integer number nn. You really love good number 阅读全文
posted @ 2020-06-04 10:03 DeaL57 阅读(220) 评论(0) 推荐(0)
摘要:Vasya will fancy any number as long as it is an integer power of two. Petya, on the other hand, is very conservative and only likes a single integer p 阅读全文
posted @ 2020-06-03 15:22 DeaL57 阅读(147) 评论(0) 推荐(0)
摘要:You have a set of birthday cake candles. Each of such candles represents a digit between 00 and 99, inclusive. Example of birthday cake candles. Let's 阅读全文
posted @ 2020-06-03 11:20 DeaL57 阅读(290) 评论(0) 推荐(0)
摘要:Tsumugi brought nn delicious sweets to the Light Music Club. They are numbered from 11 to nn, where the ii-th sweet has a sugar concentration describe 阅读全文
posted @ 2020-06-02 17:28 DeaL57 阅读(254) 评论(0) 推荐(0)
摘要:Ayush and Ashish play a game on an unrooted tree consisting of nn nodes numbered 11 to nn. Players make the following move in turns: Select any leaf n 阅读全文
posted @ 2020-06-01 22:44 DeaL57 阅读(281) 评论(0) 推荐(0)
摘要:Time Limit: 2 sec / Memory Limit: 1024 MB Score : 300300 points Problem Statement Given are positive integers NN, MM, QQ, and QQ quadruples of integer 阅读全文
posted @ 2020-05-30 15:04 DeaL57 阅读(184) 评论(0) 推荐(0)
摘要:Skier rides on a snowy field. Its movements can be described by a string of characters 'S', 'N', 'W', 'E' (which correspond to 11 meter movement in th 阅读全文
posted @ 2020-05-25 10:05 DeaL57 阅读(219) 评论(0) 推荐(0)
摘要:Polycarp wants to assemble his own keyboard. Layouts with multiple rows are too complicated for him — his keyboard will consist of only one row, where 阅读全文
posted @ 2020-05-22 20:14 DeaL57 阅读(218) 评论(0) 推荐(0)
摘要:Modern cellular phones have a small chip, called a SIM card, that allows the phone to interface with the carrier's network. SIM cards also have a smal 阅读全文
posted @ 2020-05-17 14:37 DeaL57 阅读(171) 评论(0) 推荐(0)