ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > IMPC - 2013-2014 > задача:


14-04-20. 50493 - n-digit kth Prime Number

IMPC - 2013-2014

Старт: 16.мар.2013 в 12:00:00
Финиш: 16.мар.2013 в 17:00:00
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (1)

Задачи турнира

• 14-03-20. 50398 - Sum of kth Anti-d...
• 14-03-30. 50377 - kth Permutation
• 14-03-40. 50773 - Balanced Sum Tree
• 14-03-60. 50382 - Parkside's Other ...
• 14-03-70. 50468 - Draw Matrix - 2
• 14-03-70. s
• 14-03-80. 50675 - Kruja Boys
• 14-03-90. 50717 - Hurdle Jumping
• 14-04-20. 50493 - n-digit kth Pr...
• 14-04-30. 50669 - Area of an Irregu...
• 14-04-40. 50712 - Moon algebra
• 14-04-50. 50697 - Base Stations
• 14-05-10. 50723 - Tribonacci
• 14-05-20. 50677 - The Cottage
• 14-05-20. 50413 - Valid Permutations
• 14-05-30. 50688 - Epoka Furgon
• 14-05-30. 50706 - The most crowd...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

n-digit kth Prime Number

Question: When calculating the area of an irregular polygon, all the vertices are written down in order ending with the starting vertex. Then the product of first y is with the second x is subtracted from the product of first x is with the second y.

Write a program that shows kth n-digit prime number. For example, the following are the first 10, 3-digit prime numbers:
   101 103 107 109 113 127 131 137 139 149
And, 5th 3-digit prime number is 113.

Input specification
You will be given two integers number (n and k) where is 1 ≤ n ≤ 12 and 1 ≤ k ≤ 100.

Output specification
Show one number: kth n-digit prime number.

 Sample Input I   
 4 2
 Sample Input II   
 10 10
 Sample Output I   
 1013
 Sample Output II   
 1000000181


Для отправки решений необходимо выполнить вход.

www.contester.ru