----预处理
文章平均质量分 79
_Occult_
物語が始まった
展开
-
UVA 10706 Number Sequence
Number SequenceInput: standard inputOutput: standard outputTime Limit: 1 secondA single positive integer iis given. Write a program to find the digit located in the position iin the sequen原创 2015-02-18 13:47:11 · 475 阅读 · 0 评论 -
CodeForces 21 C Stripe 2
DescriptionOnce Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negative. He became interested in how many ways exi原创 2016-04-07 19:56:30 · 529 阅读 · 0 评论 -
CodeForces 17A Noldbach problem
DescriptionNick is interested in prime numbers. Once he read about Goldbach problem. It states that every even integer greater than 2 can be expressed as the sum of two primes. That got Nick's a原创 2016-04-03 14:40:39 · 578 阅读 · 0 评论 -
HUST 1601 Shepherd
DescriptionHehe keeps a flock of sheep, numbered from 1 to n and each with a weight wi. To keep the sheep healthy, he prepared some training for his sheep. Everytime he selects a pair of numbers (原创 2016-03-06 19:36:16 · 416 阅读 · 0 评论 -
HUST 1606 Naive
DescriptionGive you a positive integer x, determine whether it is the sum of three positive cubic numbers.InputThere’re several test cases. For each case: Only one line containing an原创 2016-03-06 19:32:31 · 271 阅读 · 0 评论 -
HUST 1600 Lucky Numbers
DescriptionIsun loves digit 4 and 8 very much. He thinks a number is lucky only if the number satisfy the following conditions: 1. The number only consists of digit 4 and 8. 2. The原创 2016-03-06 19:14:40 · 364 阅读 · 0 评论 -
HDU 5637 Transform
Problem DescriptionA list of n integers are given. For an integer x you can do the following operations:+ let the binary representation of x be b31b30...b0¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯, you can flip原创 2016-03-06 00:04:44 · 610 阅读 · 0 评论 -
UESTC 1269 ZhangYu Speech
Descriptionas we all know, ZhangYu(Octopus vulgaris) brother has a very famous speech - “Keep some distance from me”. ZhangYu brother is so rich that everyone want to contact he, and scfkcf is o原创 2016-02-02 17:36:03 · 380 阅读 · 0 评论 -
HDU 5622 KK's Chemical
问题描述我们可爱的KK有一道困难的化学题目:实验室有N\left(1\leq N\leq 100 \right)N(1≤N≤100)瓶化学药品,编号为00到N-1N−1,现在KK知道第i瓶当且仅当和第c[i]c[i]瓶放在一起时会发生爆炸。KK得到任务要整理实验室,他需要将他们装进k个不同的盒子里。显然,为了KK的生命安全,你不能把两瓶会造成爆炸的药品放进同一个箱子。现在KK想知道有多少种不同原创 2016-02-07 13:59:41 · 779 阅读 · 2 评论 -
HDU 5317 RGCDQ
Problem DescriptionMr. Hdu is interested in Greatest Common Divisor (GCD). He wants to find more and more interesting things about GCD. Today He comes up with Range Greatest Common Divisor Query (原创 2015-07-28 19:16:31 · 952 阅读 · 2 评论 -
HDU 5327 Olympiad
Problem DescriptionYou are one of the competitors of the Olympiad in numbers. The problem of this year relates to beatiful numbers. One integer is called beautiful if and only if all of its digita原创 2015-07-30 19:09:16 · 777 阅读 · 0 评论 -
HDU 2483 Counting square
DescriptionThere is a matrix of size R rows by C columns. Each element in the matrix is either “0” or “1”. A square is called magic square if it meets the following three conditions. (1) The el原创 2015-02-18 15:07:42 · 792 阅读 · 0 评论 -
HDU 5676 ztr loves lucky numbers
Problem Descriptionztr loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits other than 4 and 7. For example, numbers 47, 744原创 2016-05-02 19:31:23 · 457 阅读 · 0 评论