
思维
文章平均质量分 80
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
-
hpuacm 第一次省赛选拔
The world famous scientist Innokentiy has just synthesized the potion of immortality. Unfortunately, he put the flask with this potion on the shelf where most dangerous poisons of all time were ke原创 2017-03-20 17:59:34 · 716 阅读 · 0 评论 -
2018年全国多校算法寒假训练营练习比赛(第二场)G 送分了QAQ
链接:https://www.nowcoder.com/acm/contest/74/G来源:牛客网 杭州人称傻乎乎的人为62,而嘟嘟家这里没有这样的习俗。 相比62,他那里的人更加讨厌数字38,当然啦,还有4这个 数字!所以啊,嘟嘟不点都不想见到包含38或者4的数字。 每次给出一个区间[n,m],你能找到所有令人讨厌的数字吗?输入描述原创 2018-01-28 23:04:52 · 245 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)money
链接:https://www.nowcoder.com/acm/contest/140/D来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述White Cloud has built n stores numbered from 1 to n.White Rabb...原创 2018-08-07 16:25:56 · 214 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)car
链接:https://www.nowcoder.com/acm/contest/140/I来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述White Cloud has a square of n*n from (1,1) to (n,n).White Rabb...原创 2018-08-07 17:38:58 · 184 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第四场)Another Distinct Values
链接:https://www.nowcoder.com/acm/contest/142/D来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144KSpecial Judge, 64bit IO Format: %lld题目描述Chiaki has an n x n matrix. She would like to fi...原创 2018-08-15 11:18:05 · 174 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第五场) max
链接:https://www.nowcoder.com/acm/contest/143/G来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Give two positive integer c, n. You need to find a pair of inte...原创 2018-08-16 13:54:39 · 222 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第五场) plan
链接:https://www.nowcoder.com/acm/contest/143/J来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述There are n students going to travel. And hotel has two types r...原创 2018-08-16 14:02:22 · 254 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第六场)Bulbasaur
链接:https://www.nowcoder.com/acm/contest/144/D来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Silph company deployed a passenger flow analysis system in a cl...原创 2018-08-22 16:01:37 · 371 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第五场)take
链接:https://www.nowcoder.com/acm/contest/143/F来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Kanade has n boxes , the i-th box has p[i] probability to have ...原创 2018-08-21 17:54:03 · 204 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) A Cloning Toys
A. Cloning Toystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImp likes his plush toy a lot.Recently, he found a machine tha...原创 2018-09-01 09:22:51 · 195 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) B. Magic Forest
B. Magic Foresttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImp is in a magic forest, where xorangles grow (wut?)A xorangl...原创 2018-09-01 09:27:11 · 164 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) C. Cave Painting
C. Cave Paintingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImp is watching a documentary about cave painting.Some number...原创 2018-09-01 09:34:35 · 206 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) B. Mancala
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMancala is a game famous in the Middle East. It is played on a board that consists ...原创 2018-09-01 18:39:18 · 179 阅读 · 0 评论 -
CodeForces - 844C Sorting by Subsequences
C. Sorting by Subsequencestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence a1, a2, ..., an consisting of ...原创 2018-10-11 21:51:30 · 239 阅读 · 0 评论 -
2018年全国多校算法寒假训练营练习比赛(第二场)A 吐泡泡
链接:https://www.nowcoder.com/acm/contest/74/A来源:牛客网小鱼儿吐泡泡,嘟嘟嘟冒出来。小鱼儿会吐出两种泡泡:大泡泡"O",小泡泡"o"。两个相邻的小泡泡会融成一个大泡泡,两个相邻的大泡泡会爆掉。(是的你没看错,小气泡和大气泡不会产生任何变化的,原因我也不知道。)例如:ooOOoooO经过一段时间以后会变成oO。输入描述原创 2018-01-28 22:55:32 · 253 阅读 · 0 评论 -
codeforce 897B
B. Chtholly's requesttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output— Thanks a lot for today.— I experienced so原创 2017-12-05 23:02:40 · 263 阅读 · 0 评论 -
codeforce 777c Alyona and Spreadsheet
During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables.Now she has a table filled with integers. The table consists ofn rows and m col原创 2017-12-03 09:03:18 · 282 阅读 · 0 评论 -
HPUACM 省赛B
Two boys Gena and Petya wrote on two strips of paper the same string s that consisted of lowercase Latin letters. Then each boy took one strip, cut it into small pieces so that each piece contained原创 2017-03-20 22:42:37 · 472 阅读 · 0 评论 -
CodeForces 598A Tricky Sum
A. Tricky Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem you are to calculate the sum of all integers from原创 2017-03-23 18:12:00 · 268 阅读 · 0 评论 -
J - *Wet Shark and Bishops(思维)
Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both rows and columns of the grid are numbered from 1 to 1000. Rows are numbered from top to bottom, while columns are numbered from left原创 2017-07-21 18:33:06 · 320 阅读 · 0 评论 -
谭爷的黑暗沙拉 UESTC - 1401
谭爷有n种不同种类的食材(水果&蔬菜),他想做出一份总重量为k的黑暗沙拉。他想让机智的你告诉他,他能做多少种不同的黑暗沙拉!说明:1.可以重复选择食材,而且不需要选完全部的nn种食材,但是最后总重量必须是kk。2.两份沙拉不同,当且仅当kk重量食材的种类或配比不同。3.每种食材只能选择非负整数的重量加入沙拉。Input 一行,两个正整数n,k;1<=n,k<=25,1<=n,k<=25;Outpu原创 2017-07-23 21:06:58 · 342 阅读 · 0 评论 -
K - *Restoring Painting(思维)
Vasya works as a watchman in the gallery. Unfortunately, one of the most expensive paintings was stolen while he was on duty. He doesn't want to be fired, so he has to quickly restore the painting. He原创 2017-07-21 18:42:36 · 290 阅读 · 0 评论 -
N - Aladdin and the Optimal Invitation LightOJ - 1349
Finally Aladdin reached home, with the great magical lamp. He was happier than ever. As he was a nice boy, he wanted to share the happiness with all people in the town. So, he wanted to invite all peo原创 2017-08-03 22:36:15 · 392 阅读 · 0 评论 -
LIGHT OJ 1010 Knights in Chessboard
Given an m x n chessboard where you want to place chess knights. You have to find the number of maximum knights that can be placed in the chessboard such that no two knights attack each other.Those原创 2017-05-13 09:43:43 · 209 阅读 · 0 评论 -
Jzzhu and Sequences CodeForces - 450B
Jzzhu has invented a kind of sequences, they meet the following property:You are given x and y, please calculate fn modulo 1000000007 (109 + 7).InputThe first line contains two integers原创 2017-08-23 09:15:49 · 258 阅读 · 0 评论 -
HDU 2709 Sumsets
SumsetsTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3226 Accepted Submission(s): 1288Problem DescriptionFarmer John commanded原创 2017-09-28 20:58:59 · 232 阅读 · 0 评论 -
51 Nod 1315 合法整数集
1315 合法整数集题目来源: TopCoder基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题收藏关注一个整数集合S是合法的,指S的任意子集subS有Fun(SubS)!=X,其中X是一个固定整数,Fun(A)的定义如下:A为一个整数集合,设A中有n个元素,分别为a0,a1,a2,...,an-1,那么定义:Fun(A)=a0 or a1原创 2017-09-28 21:11:50 · 259 阅读 · 0 评论 -
C - Maximum of Maximums of Minimums
You are given an array a1, a2, ..., an consisting ofn integers, and an integer k. You have to split the array into exactly k non-empty subsegments. You'll then compute the minimum integer on eac原创 2017-10-27 21:08:50 · 601 阅读 · 0 评论 -
51nod 1413 权势二进制 (思维+贪心)
1413 权势二进制题目来源: CodeForces 基准时间限制:1 秒 空间限制:131072 KB 分值: 10难度:2级算法题 收藏 关注一个十进制整数被叫做权势二进制,当他的十进制表示的时候只由0或1组成。例如0,1,101,110011都是权势二进制而2,12,900不是。当给定一个n的时候,计算一下最少要多少个权势二进制相加才能原创 2017-12-09 11:14:16 · 273 阅读 · 0 评论 -
ZOJ Problem Set - 4056
Press the ButtonTime Limit: 1 Second Memory Limit: 131072 KBBaoBao and DreamGrid are playing a game using a strange button. This button is attached to an LED light (the light is initially off...原创 2018-10-26 19:50:03 · 211 阅读 · 0 评论