11 2019 档案
摘要:链接: https://vjudge.net/problem/LightOJ 1095 题意: Consider this sequence {1, 2, 3 ... N}, as an initial sequence of first N natural numbers. You can rea
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1067 题意: Given n different objects, you want to take k of them. How many ways to can do it? For example, say th
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1058 题意: There are n distinct points in the plane, given by their integer coordinates. Find the number of paral
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1005 题意: A rook is a piece used in the game of chess which is played on a board of square grids. A rook can onl
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1236 题意: Find the result of the following code: long long pairsFormLCM( int n ) { long long res = 0; for( int i
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1245 题意: I was trying to solve problem '1234 Harmonic Number', I wrote the following code long long H( int n )
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1259 题意: Goldbach's conjecture is one of the oldest unsolved problems in number theory and in all of mathematic
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1282 题意: You are given two integers: n and k, your task is to find the most significant three digits, and least
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1336 题意: Sigma function is an interesting function in Number Theory. It is denoted by the Greek letter Sigma (σ
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1341 题意: It's said that Aladdin had to solve seven mysteries before getting the Magical Lamp which summons a po
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1370 题意: Bamboo Pole vault is a massively popular sport in Xzhiland. And Master Phi shoe is a very popular coac
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1410 题意: In a 2D plane N persons are standing and each of them has a gun in his hand. The plane is so big that
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1369 题意: The problem you need to solve here is pretty simple. You are give a function f(A, n), where A is an ar
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1354 题意: An IP address is a 32 bit address formatted in the following way a.b.c.d where a, b, c, d are integers
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1349 题意: Finally Aladdin reached home, with the great magical lamp. He was happier than ever. As he was a nice
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1323 题意: You are given a rectangular billiard board, L and W be the length and width of the board respectively.
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1311 题意: A bird was flying on a train line, singing and passing lazy times. After a while it saw a train coming
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1297 题意: In the following figure you can see a rectangular card. The width of the card is W and length of the c
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1294 题意: Given two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbe
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1275 题意: A group of N Internet Service Provider companies (ISPs) use a private communication channel that has a
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1214 题意: Given two integers, a and b, you should check whether a is divisible by b or not. We know that an inte
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1179 题意: The historian Flavius Josephus relates how, in the Romano Jewish conflict of 67 A.D., the Romans took
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1148 题意: Mob was hijacked by the mayor of the Town "TruthTown". Mayor wants Mob to count the total population o
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1116 题意: Ekka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want to shar
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1078 题意: If an integer is not divisible by 2 or 5, some multiple of that number in decimal notation is a sequen
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1020 题意: Alice and Bob are playing a game with marbles; you may have played this game in childhood. The game is
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1010 题意: Given an m x n chessboard where you want to place chess knights. You have to find the number of maximu
阅读全文
摘要:链接: https://vjudge.net/problem/LightOJ 1008 题意: Fibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts t
阅读全文
摘要:链接: https://vjudge.net/problem/UVALive 7040 题意: Recently, Mr. Big recieved n owers from his fans. He wants to recolor those owers with m colors. The o
阅读全文
摘要:链接: http://acm.hdu.edu.cn/showproblem.php?pid=2082 题意: 假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字母,可以找到多少价值 inclu
阅读全文
摘要:链接: http://acm.hdu.edu.cn/showproblem.php?pid=5446 题意: On the way to the next secret treasure hiding place, the mathematician discovered a cave unknow
阅读全文
摘要:链接: https://vjudge.net/problem/HDU 1465 题意: 大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了! 做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。 话虽这样说,我还是要告诉大家,要想失败
阅读全文
摘要:母函数 普通母函数 普通母函数 吧组合问题的加法和幂级数的乘幂结合起来。 幂级数的乘积存在指数上的加法。 例子: 我们有1, 2, 3, 4克的砝码各一个。 对于这四个砝码的选择,第一个有选和不选,第二个有选和不选,第三个第四个同理。 我们可以用数学式子表示。 $(x^0+x^1) (x^0+x^2
阅读全文
摘要:链接: http://acm.hdu.edu.cn/showproblem.php?pid=1085 题意: We all know that Bin Laden is a notorious terrorist, and he has disappeared for a long time. Bu
阅读全文
摘要:链接: https://vjudge.net/problem/HDU 1398 题意: People in Silverland use square coins. Not only they have square shapes but also their values are square n
阅读全文
摘要:链接: https://vjudge.net/problem/HDU 1028 题意: "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 sa
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/K 题意: DreamGrid is the keeper of n rabbits. Initially, the i th (1≤i≤n) rabbit has a weight of wi. Every
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/J 题意: The great mathematician DreamGrid proposes a conjecture, which states that: Every positive integer
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/I 题意: DreamGrid has an interesting permutation of 1,2,…,n denoted by a1,a2,…,an. He generates three sequ
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/F 题意: Harbin, whose name was originally a Manchu word meaning "a place for drying fishing nets", grew fr
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/D 题意: Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follow
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/C 题意: Constanze is the smartest girl in her village but she has bad eyesight. One day, she was able to
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/B 题意: Let n be a positive integer. Let a,b,c be nonnegative integers such that a+b+c=n. Alice and Bob
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/A 题意: Consider the set of all nonnegative integers: 0,1,2,…. Given two integers a and b (1≤a,b≤104). W
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 2065 题意: For some years, quite a lot of work has been put into listening to electromagnetic radio signals received
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 2478 题意: The Farey Sequence Fn for any integer n with n = 2 is the set of irreducible rational numbers a/b with 0 i
阅读全文
摘要:链接: https://vjudge.net/problem/HDU 1573 题意: 求在小于等于N的正整数中有多少个X满足:X mod a[0] = b[0], X mod a[1] = b[1], X mod a[2] = b[2], …, X mod a[i] = b[i], … (0 in
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 2115 题意: A Compiler Mystery: We are given a C language style for loop of type for (variable = A; variable != B; var
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 2689 题意: The branch of mathematics called number theory is about properties of numbers. One of the areas that has c
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 2891 题意: Elina is reading a book written by Rujia Liu, which introduces a strange way to express non negative integ
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 2142 题意: Ms. Iyo Kiffa Australis has a balance and only two kinds of weights to measure a dose of medicine. For exa
阅读全文
摘要:链接: https://vjudge.net/problem/POJ 1061 题意: 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/D 题意: You are the head of a large enterprise. n people work at you, and n is odd (i. e. n is not divis
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/C 题意: You are given a huge integer a consisting of n digits (n is between 1 and 3⋅105, inclusive). It
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/B 题意: A palindrome is a string t which reads the same backward as forward (formally, t[i]=t[|t|+1−i] f
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/A 题意: Recently Polycarp noticed that some of the buttons of his keyboard are malfunctioning. For simpl
阅读全文