暴力
暴力
Guuuuuu老师儿
当初的算法竞赛题目博客的留言评论就不回复了,时间太久已经忘干净了,抱歉~
展开
-
Dasha and Password (暴力+贪心)
After overcoming the stairs Dasha came to classes. She needed to write a password to begin her classes. The password is a string of lengthn which satisfies the following requirements:There is at原创 2017-10-22 18:38:04 · 280 阅读 · 0 评论 -
Proper Nutrition (暴力+思维)
Proper Nutrition Vasya has n burles. One bottle of Ber-Cola costs a burles and one Bars bar costs b burles. He can buy any non-negative integer number of bottles of Ber-Cola and any...原创 2018-04-18 20:55:12 · 489 阅读 · 0 评论 -
Cubes for Masha (思维+暴力)
Cubes for Masha Absent-minded Masha got set of n cubes for her birthday.At each of 6 faces of each cube, there is exactly one digit from 0 to 9. Masha became interested what is the ...原创 2018-04-24 16:19:24 · 278 阅读 · 0 评论 -
Mancala(模拟)
MancalaMancala is a game famous in the Middle East. It is played on a board that consists of 14 holes. Initially, each hole has $$$a_i$$$ stones. When a player makes a move, he chooses a hole which ...原创 2018-05-09 08:26:41 · 903 阅读 · 0 评论 -
Continuous Login ZOJ - 3768 (暴力)
Continuous Login ZOJ - 3768 Pierre is recently obsessed with an online game. To encourage users to log in, this game will give users a c...原创 2018-04-27 20:24:41 · 207 阅读 · 0 评论 -
Mystical Mosaic CodeForces - 957B(暴力,思维)
Mystical Mosaic CodeForces - 957BThere is a rectangular grid of n rows of m initially-white cells each.Arkady performed a certain number (possibly zero) of o...原创 2018-05-21 10:54:17 · 474 阅读 · 0 评论 -
Shuffle'm Up(模拟)
Shuffle'm Up 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 chips, S1 and S2, each sta...原创 2018-05-08 16:00:48 · 236 阅读 · 0 评论 -
Intense Heat(暴力+前缀和)
Intense HeatThe heat during the last few days has been really intense. Scientists from all over the Berland study how the temperatures and weather change, and they claim that this summer is abnormal...原创 2018-08-05 07:14:15 · 420 阅读 · 0 评论 -
An easy problem HDU5475(暴力)
An easy problem HDU5475 One day, a useless calculator was being built by Kuros. Let's assume that number X is showed on the screen of calculator. At first, X = 1. This calculator only supports two t...原创 2018-08-05 09:44:59 · 310 阅读 · 3 评论 -
Central Meridian Number(暴力)
Central Meridian Number网上说这是一道数论神题,看他们推了一对公式和证明最终证明出一个简单的判断公式 但是因为数据量小,所以就暴力吧,比赛时还以用最简单直接的方法做题。。。这个题给了一个蕴涵式N|((A2)∗B+1) → N|(A2+B)N|((A2)∗B+1) → N|(...原创 2018-08-05 11:05:30 · 388 阅读 · 0 评论 -
Secret Poems HihoCoder - 1632(模拟)
Secret Poems HihoCoder - 1632The Yongzheng Emperor (13 December 1678 – 8 October 1735), was the fifth emperor of the Qing dynasty of China. He was a very hard-working ruler. He cracked down on corru...原创 2018-07-27 19:51:58 · 253 阅读 · 0 评论 -
Reversing Encryption (模拟水题)
Reversing EncryptionA string s of length ncan be encrypted by the following algorithm:iterate over all divisors of nin decreasing order (i.e. from n to 1 ), for each divisor d , reverse th...原创 2018-08-10 19:14:34 · 269 阅读 · 0 评论 -
Problem K. Expression in Memories HDU - 6342(模拟)
Problem K. Expression in Memories HDU - 6342Kazari remembered that she had an expression s0 before. Definition of expression is given below in Backus–Naur form. ::= | ::= “+” | “*” ::= “0...原创 2018-08-02 10:07:17 · 245 阅读 · 0 评论 -
Function HDU - 5875(暴力+思维)
Function HDU - 5875The shorter, the simpler. With this problem, you should be convinced of this truth.You are given an array A of N postive integers, and M queries in the form (l,r). A function F(...原创 2018-08-31 18:43:33 · 255 阅读 · 0 评论 -
ACM-ICPC 2018 南京赛区网络预赛 B The writing on the wall(暴力)
ACM-ICPC 2018 南京赛区网络预赛 B The writing on the wall这道题不想写了,直接看我队友的写的博客吧,网上其他博客其他方法我也看不懂。。 ACM-ICPC 2018 南京赛区网络预赛 B The writing on the wallcode:#include <bits/stdc++.h>using namespace std;t...原创 2018-09-02 20:48:14 · 711 阅读 · 0 评论 -
Tic-Tac-Toe FZU - 2283 (暴力)
Tic-Tac-Toe FZU - 2283 Kim likes to play Tic-Tac-Toe. Given a current state, and now Kim is going to take his next move. Please tell Kim...原创 2018-04-07 10:15:21 · 295 阅读 · 0 评论 -
Lazier Salesgirl ZOJ - 3607 (思维,贪心)
Lazier Salesgirl ZOJ - 3607 Kochiya Sanae is a lazy girl who makes and sells bread. She is an expert at bread making and selling. She ca...原创 2018-04-22 15:54:28 · 219 阅读 · 0 评论 -
Friends ZOJ - 3710(暴力)
Friends ZOJ - 3710 Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less than k friends in common, they will be原创 2017-11-17 10:46:55 · 294 阅读 · 0 评论 -
1096. Consecutive Factors (20)(暴力枚举)
1096. Consecutive Factors (20)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueAmong all the factors of a positive integer N, there may exist several consecutive numbers. For example, 6...原创 2018-03-07 20:01:52 · 163 阅读 · 0 评论 -
1077. Kuchiguse (20)
1077. Kuchiguse (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HOU, QimingThe Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be consi...原创 2018-03-09 18:35:10 · 104 阅读 · 0 评论 -
1060. Are They Equal (25)
1060. Are They Equal (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they ...原创 2018-03-09 20:45:12 · 133 阅读 · 0 评论 -
1059. Prime Factors (25)
1059. Prime Factors (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HE, QinmingGiven any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1...原创 2018-03-09 21:22:48 · 166 阅读 · 0 评论 -
L2-023. 图着色问题
L2-023. 图着色问题 时间限制 300 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 图着色问题是一个著名的NP完全问题。给定无向图 G =...原创 2018-03-12 13:17:18 · 361 阅读 · 0 评论 -
Professor GukiZ and Two Arrays CodeForces - 620D (暴力枚举+二分搜索)
Professor GukiZ and Two Arrays CodeForces - 620D Professor GukiZ has two arrays of integers, a and b. Professor wants to make the sum of...原创 2018-03-14 09:42:03 · 322 阅读 · 0 评论 -
The Monster (思维题)
The Monster As Will is stuck in the Upside Down, he can still communicate with his mom, Joyce, through the Christmas lights (he can turn them on and off with his mind). He can't dir...原创 2018-04-07 20:24:33 · 434 阅读 · 0 评论 -
Modular Exponentiation
Modular ExponentiationThe following problem is well-known: given integers n and m, calculate , where 2n = 2·2·...·2 (n factors), and denotes the remainder of division of x by y.You are asked to solv...原创 2018-04-08 14:19:07 · 297 阅读 · 0 评论 -
Chess For Three (模拟)
Chess For ThreeAlex, Bob and Carl will soon participate in a team chess tournament. Since they are all in the same team, they have decided to practise really hard before the tournament. But it's a bit...原创 2018-04-14 18:43:38 · 165 阅读 · 0 评论 -
Borya's Diagnosis(模拟)
Borya's Diagnosis It seems that Borya is seriously sick. He is going visit n doctors to find out the exact diagnosis. Each of the doctors needs the information about all previous v...原创 2018-04-15 16:22:14 · 187 阅读 · 0 评论 -
Hungry Student Problem (水题)
Hungry Student ProblemIvan's classes at the university have just finished, and now he wants to go to the local CFK cafe and eat some fried chicken.CFK sells chicken chunks in small and large portions....原创 2018-04-12 10:40:49 · 421 阅读 · 0 评论 -
Div. 64(简单暴力)
Div. 64Top-model Izabella participates in the competition. She wants to impress judges and show her mathematical skills.Her problem is following: for given string, consisting of only 0 and 1, tell if ...原创 2018-04-12 13:47:21 · 663 阅读 · 0 评论 -
Crusaders Quest ZOJ - 3983(思维+暴力)
Crusaders Quest ZOJ - 3983Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the game world, and the only hope for your kingdom is to save the Goddesses s...原创 2018-09-19 07:40:59 · 231 阅读 · 0 评论