PROBLEMS SUBMIT STATUS STANDINGS CUSTOM TEST Little Petya very much likes gifts. Recently he has received...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
PROBLEMS SUBMIT STATUS STANDINGS CUSTOM TEST Little Petya very much likes gifts. Recently he has received a new laptop as a New Year gift from his mother. He immediately decided to give it to somebody else as what can be more pleasant than giving somebody gifts. And on this occasion he organized a New Year party at his place and invited his friends there If there's one thing Petya likes more that receiving gifts, that's watching others giving gifts to somebody else. Thus, he safely hid the laptop until the next New Year and made up his mind to watch his friends exchanging gifts while he does not participate in the process. He numbered all his friends with integers from 1 to n. Petya remembered that a friend number i gave a gift to a friend number p;. He also remembered that each of his friends received exactly one gift. Now Petya wants to know for each friend i the number of a friend who has given him a gift. A. Presents time limit per test 2 seconds memory limit per test: 256 megabytes input: standard input output standard output Input The first line contains one integer n (1 n100)-the quantity of friends Petya invited to the party. The second line contains > space- separated integers: the i-th number is p, -the number of a friend who gave a gift to friend number i. It is guaranteed that each friend received exactly one gift. It is possible that some friends do not share Petya's ideas of giving gifts to somebody else. Those friends gave the gifts to themselves. Output Print n space-separated integers: the i-th number should equal the number of the friend who gave a gift to friend number i Examples input 4 2341 output 4123 Copy Copy - Attention The package for this problem was not updated by the problem writer or Codeforces administration after we've upgraded the judging servers. To adjust the time limit constraint, a solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then the value 800 ms will be displayed and used to determine the verdict. Codeforces Beta Round 97 (Div. 2) Finished Practice > Virtual participation Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests. If you've seen these problems, a virtual contest is not for you - solve these problems in the archive. If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive. Never use someone else's code, read the tutorials or communicate with other person during a virtual contest. Start virtual contest 111. PROBLEMS SUBMIT STATUS STANDINGS CUSTOM TEST Little Petya very much likes gifts. Recently he has received a new laptop as a New Year gift from his mother. He immediately decided to give it to somebody else as what can be more pleasant than giving somebody gifts. And on this occasion he organized a New Year party at his place and invited his friends there If there's one thing Petya likes more that receiving gifts, that's watching others giving gifts to somebody else. Thus, he safely hid the laptop until the next New Year and made up his mind to watch his friends exchanging gifts while he does not participate in the process. He numbered all his friends with integers from 1 to n. Petya remembered that a friend number i gave a gift to a friend number p;. He also remembered that each of his friends received exactly one gift. Now Petya wants to know for each friend i the number of a friend who has given him a gift. A. Presents time limit per test 2 seconds memory limit per test: 256 megabytes input: standard input output standard output Input The first line contains one integer n (1 n100)-the quantity of friends Petya invited to the party. The second line contains > space- separated integers: the i-th number is p, -the number of a friend who gave a gift to friend number i. It is guaranteed that each friend received exactly one gift. It is possible that some friends do not share Petya's ideas of giving gifts to somebody else. Those friends gave the gifts to themselves. Output Print n space-separated integers: the i-th number should equal the number of the friend who gave a gift to friend number i Examples input 4 2341 output 4123 Copy Copy - Attention The package for this problem was not updated by the problem writer or Codeforces administration after we've upgraded the judging servers. To adjust the time limit constraint, a solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then the value 800 ms will be displayed and used to determine the verdict. Codeforces Beta Round 97 (Div. 2) Finished Practice > Virtual participation Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests. If you've seen these problems, a virtual contest is not for you - solve these problems in the archive. If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive. Never use someone else's code, read the tutorials or communicate with other person during a virtual contest. Start virtual contest 111.
Expert Answer:
Answer rating: 100% (QA)
It appears youve shared an image of a programming problem description Unfortunately a part of the te... View the full answer
Related Book For
International Marketing And Export Management
ISBN: 9781292016924
8th Edition
Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Review TP1. Review current season ticket prices for one Major League Baseball team. Choose one season ticket price area to review. A. Determine what is recognized as per ticket revenue after each...
-
Have Google's business model and strategy proven to be successful? Should investors be impressed with the company's financial performance? How does the company's financial performance compare to that...
-
The input to the system y(n) = 0.999y(n 1) + x(n) is quantized to b = 8 bits. What is the power produced by the quantization noise at the output of the filter?
-
The long straight wire in Figure P29.17 carries a current \(I\) that varies in time as \(I=I_{0} \sin (\omega t)\), and a loop of wire is held stationary near the straight wire. When is the induced...
-
(Multiple Choice) 1. What are the components of the net position section of a governmental hospitals balance sheet? a. Unrestricted; temporarily restricted; permanently restricted b. Assets limited...
-
Marshall's concept of external economies and diseconomies refers to: a) Changes in output resulting from changes in input levels b) The effects of production on the environment c) The benefits or...
-
The researcher wants a systematic sampling and the sample size is 98, what is the population sze if the confidence level is 99%? Determine the following: a The Sampling interval b. The first two...
-
Does work done on a system necessarily change the system's kinetic energy?
-
When you stand up from a seated position, you push down with your legs. Does this mean you do negative work when you stand up?
-
DATATRONIC is a company started by George Pandry and Rolin Martin, two friends who had just graduated with degrees in business administration and saw an opportunity to start their own business. With...
-
A mosquito splatters onto the windshield of a moving bus and sticks to the glass. (a) During the collision, is the magnitude of the change in the mosquito's momentum smaller than, larger than, or...
-
A tennis ball of inertia \(0.20 \mathrm{~kg}\) is launched straight up in the air by hitting it with a racquet. If the magnitude of the acceleration of the ball while it is in contact with the...
-
Nitrogen atom (-N) has high electron affinity than carbon atom (C). Select one: O True O False
-
When the Department of Homeland Security created a color-coded system to prepare government officials and the public against terrorist attacks, what did it do right and what did it do wrong?
-
Distinguish among the built-in, separate and sales subsidiaries as forms of export departments.
-
After many years of international consulting and trading activities with Hong Kong and China, Klaus Koehler established a services company, the Klako Group, in Hong Kong in 1979. The company provided...
-
Is there a best way for a company to acquire new products for its export product line?
-
Which of these statements regarding the origin of life is false? (a) Life originated on an Earth whose atmosphere contained high levels of oxygen. (b)Miller and Urey obtained amino acids and other...
-
The primary problem with the hypothesis that life on Earth originated on Mars is that (a) Mars has never had water. (b) the proposed Martian fossils are much smaller than the tiniest bacteria on...
-
Which statement about human evolution is true? (a) The earliest fossils of modern humans are almost 200,000 years old. (b)Humans are descended from chimpanzees. (c) Modern humans are the only...
Study smarter with the SolutionInn App