随笔分类 - SGU
摘要:Description描述Two of the three members of the winning team of one of the ACM regional contests are going to meet in order to train for the upcoming Wor...
阅读全文
摘要:Description描述Let P1, P2, … ,PN, … be a sequence of prime numbers. Super-prime number is such a prime number that its current number in prime numbers s...
阅读全文
摘要:Description描述Every city in Berland is situated on Ox axis. The government of the country decided to build new telecasting station. After many experime...
阅读全文
摘要:Description描述Inspired by a "Little Bishops" problem, Petya now wants to solve problem for rooks.A rook is a piece used in the game of chess which is p...
阅读全文
摘要:Description描述You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2...
阅读全文
摘要:Description描述On a circle border there are 2k different points A1, A2, ..., A2k, located contiguously. These points connect k chords so that each of po...
阅读全文
摘要:Description描述Famous Berland ACM-ICPC team Anisovka consists of three programmers: Andrew, Michael and Ilya. A long time ago, during the first few mont...
阅读全文
摘要:Description描述There are two boxes. There are A balls in the first box, and B balls in the second box (0 using namespace std;const int MAX = 32;int main...
阅读全文
摘要:Description描述Let f(n) be a sum of digits for positive integer n. If f(n) is one-digit number then it is a digital root for n and otherwise digital roo...
阅读全文
摘要:Description描述Find amount of numbers for given sequence of integer numbers such that after raising them to theM-th power they will be divided byK.求出给定一...
阅读全文
摘要:Description描述You want to arrange the window of your flower shop in a most pleasant way. You haveFbunches of flowers, each being of a different kind, a...
阅读全文
摘要:Description描述Dominoes – game played with small, rectangular blocks of wood or other material, each identified by a number of dots, or pips, on its fac...
阅读全文
摘要:Description描述His Royal Highness King of Berland Berl XV was a very wise man and had a very accomplished wife, who was aware of the fact, that prominen...
阅读全文
摘要:Description描述Find coordinates of any triangle ABC if it is know that |AB|=c, |AC|=b, |AM|=m, AM is a median of triangle.找到任何一个三角形ABC,使得它满足|AB| = c,|AC...
阅读全文
摘要:Description描述There are N integers (1A[j].给定N (1 A[j]的数对(i, j)的总数。Input输入The first line of the input contains the number N. The second line contains N...
阅读全文
摘要:Description描述CIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory contain the name of the direct...
阅读全文
摘要:Description描述You are given natural numbers a and b. Find ab-ba.给定自然数a、b,求ab-ba。Input输入Input contains numbers a and b (1≤a,b≤100).输入文件包含a和b(0#include u...
阅读全文
摘要:Description描述Nearly prime number is an integer positive number for which it is possible to find such primesP1andP2that given number is equal toP1*P2. ...
阅读全文
摘要:Description描述For given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.对于任意给定的数N,你需要输...
阅读全文
摘要:Description描述Petya is well-known with his famous cabbage patties. Petya's birthday will come very soon, and he wants to invite as many guests as possi...
阅读全文

浙公网安备 33010602011771号