Блог пользователя feruz.atamuradov

Автор feruz.atamuradov, история, 12 месяцев назад, По-английски

Hello Codeforces members. I try build online judge. I dont found any information about installation pascal abc.net and free pascal to docker alpine. How to install these languages?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-русски

Hello everyone. I need your help. I am trying to installation Windows 10 my computer. I always selected one disk and format after I install this. After installation it didn't work well when I connect internet my pc work slowle. I have seen some videos on the youtube. But in those videos clears the all disks. I'm just trying to put it on one disc. Trying not to touch my other disks. because it contains the necessary information. How can I change? My pc: Intel(R) Core(TM)i3-3100M CPU @2.40GHZ, RAM: 2gb, 64prossesor

Thanks advance!!! Sorry my english!

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-русски

Hello codeforces!

This task be time limit : http://codeforces.com/contest/1442/problem/C

This my code: http://codeforces.com/contest/1442/submission/98099986

Help me find why be time limit?

Thanks advance!!! Sorry my english

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-русски

Hello everybody!

I need some help. Can I know ASCII code of a character in javascript? in C++ i write (char)(character) and (int)(number) can I write this in javascript?

Sorry my english:)

Thanks advance

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-русски

Hello everybody in codeforces comminity.

I have found book php and mysql server side development since this March. First I want downloaded but can't. After I tried to buy this book. but it too can't. this days i can't have enough money. if anyone have this book or know download link please write comment.

I wait yours comments.

Thanks advance!!!

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-английски

Hello everyone!

My last blog I wrote book Jon Duckett php and mysql. I need help download or buy pdf format. if anyone know how do it please write comment. I'm very glad if we help me.

Thanks advance!
Sorry my English!
I wait your help!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-английски

Hello everybody!

I need your help. I want to learn php and mysql. If someone have book by Jon Duckett called php and mysql please send to my email pdf format. I dont have any credit cards. If we have the book please send. I'm very glad if we help to me.

My email: [email protected]

---------------------------------

Sorry my english.

Thanks advance. ---------------------------------****

Полный текст и комментарии »

Теги php
  • Проголосовать: нравится
  • -9
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 4 года назад, По-английски

Hello Coderforces!
I want to learn R and python programming laguagages. but i don't find best tutorial. Please help me if we have tutorials or know links please write comment or send my email: [email protected]

Thanks advance!!!
Sorry my English.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 5 лет назад, По-русски

Hello everybody. I need help solved this problems. I have two problems can you help me to solve this problems 1 2

I want to solve this tasks without Katalan numbers. Thanks advance!!!

thanks for +1

Полный текст и комментарии »

  • Проголосовать: нравится
  • +17
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 5 лет назад, По-русски

Hello Codeforces. I want to learn dp bitmask. I want to solve tasks step by step. Can I find tasks? Sorry my english Thanks advance!!!

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 5 лет назад, По-русски

Hello Codeforces.
I have a problem with dp. I don't have any ideas.
Please help me solved this problem.
Sorry my english Thanks in advance!!!

Полный текст и комментарии »

Теги dp
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 5 лет назад, По-русски

Hello Codeforces.
I have a problem with dp. I don't have any ideas.
Please help me solved this problem.
Sorry my english Thanks in advance!!!

Полный текст и комментарии »

Теги dp
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-английски

Hello codeforces community. can you help me problem on the dp.
task in russian

Consider an oriented graph G having n vertices numbered by positive integers from 1 to n. In the graph G, there may be several arcs between the same pair of vertices, as well as arcs leading from the vertex to it. Each arc of the graph is marked by some letter of the Latin alphabet. Each path in graph G can be put in correspondence with a string consisting of letters written on successively paths that pass through this path. This is the pathname of the path. We call the string S the path line of the graph G if there exists a path in it whose path label is S.

Your task is to calculate the remainder of dividing by 1 000 000 the number of waypoints of graph G consisting of exactly L symbols.

**Input**

The first line of the input data contains integers n, m, L (1 ≤ n ≤ 10, 1 ≤ m ≤ 10 000, 1 ≤ L ≤ 100) equal to the number of vertices and edges of the graph G, and also the length of the path lines that need to look for. The next m rows define the arcs of the graph G. Each of these lines contains two natural numbers a, b (1 ≤ a, b ≤ n) and a small Latin letter c, which means the presence of an arc from the vertex a to the vertex b marked with the symbol c. Elements of each line are separated from each other by spaces.

**Output**

The only output line must contain one number equal to the remainder of dividing the number of path lines of length L in column G by 1 000 000.

**Test**

4 4 100
1 2 a
2 3 b
3 4 a
4 1 b
ans : 2

Полный текст и комментарии »

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски

Hi CF community. I found problem tag of binary indexed tree. I have not any ideas. Help me!
TASK

(Time: 2 seconds Memory: 16 MB)

The famous company "Gold & Silver Soft" decided to take the leading place in the field of development of relational databases. The management of the company understands that for this it is necessary to surprise consumers with the speed of their software product.

It's no secret that the relational database is based on a table that can be considered as a one-dimensional array of records. It is known that when searching all records of the table are viewed sequentially, starting with the very first and ending with the one found.

The technical department of the company has established that it often happens that the search for the same record in the table is made several times. Based on this, the programmers decided after each new search query to change the order of the records in the table. In other words, after searching, the found entry is moved to the first place in the table. Obviously, the more often a specific record is searched, the closer it will be to the beginning of the table and the faster the search for that record will be.

Your task is to write a program that for each of the M consecutive search queries will determine the number of scanned records when searching for a given one. For the sake of simplicity, we assume that there is a table with N records, where the record is a number from 1 to N. At the beginning, all records in the table are arranged in ascending order, i.e., the i-th place in the table contains the number i. For the example below, for M = 2, N = 6, and requests for the search for the numbers "5" and "3", you will need 5 and 4 viewing the records, respectively.Tests have in task.

Input

The first line of the input file INPUT.TXT contains two integers N and M (1 ≤ N, M ≤ 65535) — the number of records in the table and the number of search requests, respectively. The numbers are separated by a single space.

The second line contains M natural numbers Ai (1 ≤ Ai ≤ N) separated by single spaces, where Ai is a query to find the number Ai in the table. Search requests are executed sequentially in the order in which they are entered.

Output

The only output line OUTPUT.TXT must contain M natural numbers separated by single spaces, the i-th number is the number of scanned records when searching for the number Ai.

Thanks in advance!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски

Hi CF! I find problem sqrt decomposition. Sorry my english isn't well.

Roma and Vitala came up with the following game: add and subtract from the number of power two, and after each operation count the number of units in the binary number of this number. Who is faster and more correct, he won.

You have to help them: write a program with which they could check their calculations. The rules of the game are:

At the beginning of the game, the number P is zero. For the entire game, N operations are performed. Each operation is the addition to the number P or subtraction from the number P of the number 2S. After performing each operation, it is necessary to output the number of units in the binary representation of P. It is guaranteed that at any time the number P can not be negative.


Input

The first line of the input file INPUT.TXT contains an integer N (1 ≤ N ≤ 105) — the number of operations. The following N lines specify operations where each operation is specified by one of two lines: "add S" or "sub S", where S (0 ≤ S ≤ 105) is an integer.

The "add S" operation means that 2 S must be added to the P number.

The operation "sub S" means that the number P should subtract 2 S.


Output

For each of the N requests to the output file OUTPUT.TXT on a separate line, output the number of units in the binary record of the number P after performing this operation.

test

4 add 2 add 8 sub 3 sub 0 output: 1 2 6 7

Полный текст и комментарии »

  • Проголосовать: нравится
  • -16
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски

Hi codeforces. Please help me. How to solve this problem acmp.ru

Horse riding


It is required to make a round of a rectangular field, moving in it according to the rules of a chess horse. In the labyrinth there are cells that can not be moved. The initial position of the horse is determined. It is necessary to visit all cells (in which the transition is possible) without repeated calls. It is guaranteed that such a bypass exists.

Input


The first line of the input file INPUT.TXT contains two natural numbers N and M — the field sizes (N, M ≤ 100). Next, the map of the field follows: N lines of M characters in each line. The symbol "." (Dot) denotes an empty space. The symbol "X" indicates that movement to this cell is prohibited. The initial position of the knight is given by the unique "K" in the field.

Output


In the output file OUTPUT.TXT output the bypass matrix of the field, in each cell of which the step number of its visit must be entered (starting with one). Cells labeled "X" in the input data should be labeled with a zero value when outputting. Numbers should be separated by spaces, it is allowed to use extra spaces. In the case of an ambiguous solution, you should deduce any.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -13
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски

Hi codeforces. Please help me! How to solve problem acmp.ru in O(NM) time.
Sorry me English isn't well.
Thanks in advance!

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски

Помагите мне пожалуйста как решить эту задача помощью числа каталана.
Условия задача :
Задан шаблон, состоящий из круглых скобок и знаков вопроса. Требуется определить, сколькими способами можно заменить знаки вопроса круглыми скобками так, чтобы получилось правильное скобочное выражение.

Задача acmp.ru Your text to link here...

Полный текст и комментарии »

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски

Помагите мне пожалуйста как решить эту задача Шары и коробки

Полный текст и комментарии »

  • Проголосовать: нравится
  • +11
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 7 лет назад, По-русски
  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

Автор feruz.atamuradov, история, 8 лет назад, По-русски

дерева отрезков для поиска суммы — http://ideone.com/7wxCdo дерева отрезков для поиска минимума — http://ideone.com/miZuFJ Деревья отрезков, сохраняющие все элементы — http://ideone.com/7R46pK

Полный текст и комментарии »

  • Проголосовать: нравится
  • -23
  • Проголосовать: не нравится