Shortcut | Description |
---|---|
Ctrl+Shift+P | command prompt |
Ctrl+Alt+P | switch project |
Ctrl+P | go to file |
Ctrl+G | go to line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Panda has recently learned about ASCII values.He is very fond of experimenting. With his knowledge of ASCII values and character he has developed a special word and named it Panda's Magical word. | |
A word which consist of alphabets whose ASCII values is a prime number is an Dhananjay's Magical word. An alphabet is Panda's Magical alphabet if its ASCII value is prime. | |
Dhananjay's nature is to boast about the things he know or have learnt about. So just to defame his friends he gives few string to his friends and ask them to convert it to Panda's Magical word. None of his friends would like to get insulted. Help them to convert the given strings to Dhananjay's Magical Word. | |
Rules for converting: | |
1.Each character should be replaced by the nearest Panda's Magical alphabet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You have been given an array A of size N consisting of positive integers. You need to find and print the product of all the number in this array Modulo 109+7. | |
Input Format: | |
The first line contains a single integer N denoting the size of the array. The next line contains N space separated integers denoting the elements of the array | |
Output Format: | |
Print a single integer denoting the product of all the elements of the array Modulo 109+7. | |
Constraints: | |
1≤N≤103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Akash and Vishal are quite fond of travelling. They mostly travel by railways. They were travelling in a train one day and they got interested in the seating arrangement of their compartment. | |
The compartment looked something like - https://letsupgrade.in/projectIMages/train.jpg | |
So they got interested to know the seat number facing them and the seat type facing them. The seats are denoted as follows : | |
Window Seat : WS | |
Middle Seat : MS | |
Aisle Seat : AS |