随笔分类 -  搜索

摘要:1202B - You Are Given a Decimal String... 这个复杂度看着都觉得有点悬(O(100*N)),居然才用500ms #include <iostream> #include <vector> #include <algorithm> #include <strin 阅读全文
posted @ 2020-07-11 13:50 DeaL57 阅读(162) 评论(0) 推荐(0)
摘要:1204C - Anna, Svyatoslav and Maps 看别人题解才知道题目是怎么回事。。。 #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #incl 阅读全文
posted @ 2020-07-10 23:44 DeaL57 阅读(154) 评论(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 阅读(187) 评论(0) 推荐(0)
摘要:Xenia is a girl being born a noble. Due to the inflexibility and harshness of her family, Xenia has to find some ways to amuse herself. Recently Xenia 阅读全文
posted @ 2020-05-10 11:10 DeaL57 阅读(218) 评论(0) 推荐(0)
摘要:Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but 阅读全文
posted @ 2020-03-30 23:53 DeaL57 阅读(145) 评论(0) 推荐(0)
摘要:A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker c 阅读全文
posted @ 2020-03-24 23:44 DeaL57 阅读(190) 评论(0) 推荐(0)
摘要:The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room 阅读全文
posted @ 2020-03-24 21:01 DeaL57 阅读(119) 评论(0) 推荐(0)
摘要:Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You m 阅读全文
posted @ 2020-03-24 09:35 DeaL57 阅读(115) 评论(0) 推荐(0)
摘要:Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which the 阅读全文
posted @ 2020-03-23 13:34 DeaL57 阅读(108) 评论(0) 推荐(0)
摘要:Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numb 阅读全文
posted @ 2020-03-23 10:18 DeaL57 阅读(152) 评论(0) 推荐(0)
摘要:You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. 阅读全文
posted @ 2020-03-22 19:09 DeaL57 阅读(140) 评论(0) 推荐(0)
摘要:在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔在一个n*n的 阅读全文
posted @ 2020-03-21 16:04 DeaL57 阅读(169) 评论(0) 推荐(0)