
---------------------搜索
文章平均质量分 66
dxyinme
这个作者很懒,什么都没留下…
展开
-
[洛谷 P1036]选数
题目描述已知 n 个整数 x1,x2,…,xn,以及一个整数 k(k<n)。从 n 个整数中任选 k 个整数相加,可分别得到一系列的和。例如当 n=4,k=3,4 个整数分别为 3,7,12,19 时,可得全部的组合与它们的和为:3+7+12=22 3+7+19=29 7+12+19=38 3+12+19=34。现在,要求你计算出和为素数共有多少种。例如上例,只有一种的和为素原创 2017-06-26 11:58:20 · 2137 阅读 · 0 评论 -
[2019牛客多校训练第8场]Distance
链接:https://ac.nowcoder.com/acm/contest/888/D来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 524288K,其他语言1048576K64bit IO Format: %lld分数:2500 前期题但是貌似没想到题目描述Gromah and LZR have entered the fourth level. The...原创 2019-08-13 10:25:32 · 304 阅读 · 0 评论 -
[vijos1755]靶形数独
描述小城和小华都是热爱数学的好学生,最近,他们不约而同地迷上了数独游戏,好胜的他 们想用数独来一比高低。但普通的数独对他们来说都过于简单了,于是他们向 Z博士请教, Z 博士拿出了他最近发明的“靶形数独” ,作为这两个孩子比试的题目。 靶形数独的方格同普通数独一样,在 9 格宽×9 格高的大九宫格中有 9 个 3 格宽×3 格 高的小九宫格(用粗黑色线隔开的) 。在这个大九宫格中,有一原创 2016-09-03 23:48:06 · 362 阅读 · 0 评论 -
[codeforces 508D]Tanya and Password
time limit per test : 2 secondsmemory limit per test : 256 megabytesWhile dad was at work, a little girl Tanya decided to play with dad’s password to his secret database. Dad’s password is a string ...原创 2019-07-17 14:24:32 · 299 阅读 · 0 评论 -
[codeforces917B]MADMAX
time limit per test : 1 secondmemory limit per test : 256 megabytesAs we all know, Max is the best video game player among her friends. Her friends were so jealous of hers, that they created an actu...原创 2019-07-10 10:39:32 · 416 阅读 · 0 评论 -
[hdu3118]Arbiter
Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Problem DescriptionArbiter is a kind of starship in the StarCraft science-fiction series. The Arbiter-class starship...原创 2019-07-09 18:36:29 · 242 阅读 · 0 评论 -
[codeforces888E]Maximum Subsequence
time limit per test : 1 secondmemory limit per test : 256 megabytesYou are given an array a consisting of nnn integers, and additionally an integer mmm. You have to choose some sequence of indices b...原创 2019-02-18 09:54:14 · 313 阅读 · 0 评论 -
[hdu2822]Dogs
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description Prairie dog comes again! Someday one little prairie dog Tim wants to visit one of his friends on...原创 2018-09-05 15:03:52 · 253 阅读 · 0 评论 -
[POJ1934]Trip
DescriptionAlice and Bob want to go on holiday. Each of them has planned a route, which is a list of cities to be visited in a given order. A route may contain a city more than once. As they want t...原创 2018-08-06 19:52:11 · 602 阅读 · 0 评论 -
[POJ2531]Network Saboteur
Time Limit: 2000MS Memory Limit: 65536KDescriptionA university network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided t...原创 2018-03-29 09:05:27 · 187 阅读 · 0 评论 -
[POJ1475]Pushing Boxes
Time Limit: 2000MS Memory Limit: 131072K Special JudgeDescriptionImagine you are standing inside a two-dimensional maze composed of square cells which may or may not be filled with rock. You c原创 2018-01-25 15:26:35 · 219 阅读 · 0 评论 -
[POJ2157]Maze
Time Limit: 2000MS Memory Limit: 65536KDescription Acm, a treasure-explorer, is exploring again. This time he is in a special maze, in which there are some doors (at most 5 doors, represented by ‘原创 2018-01-25 15:08:16 · 505 阅读 · 0 评论 -
[gym102222K]Vertex Covers
time limit per test : 10.0 smemory limit per test : 256 MBIn graph theory, a vertex cover of a graph GGG is a set of vertices SSS such that each edge of the graph is incident to at least one vertex ...原创 2019-08-31 22:04:56 · 427 阅读 · 0 评论