• Intermediate Counting & Probabilty
  • Intermediate Algebra
  • PreCalculus
  • Art of Problem Solving Volume 2

If you have qualified for AIME, you have probably studied the more elementary AopS books fully, and can expect to get 4-6 or less with just these basics. If you want to score 7+ on the AIME, you will need to study the more advanced AoPS books listed above, as well as past AIME problems and solutions.

The official solution sets generally provide a single solution to a given problem, demonstrating the feasibility of solution within the standard high school curriculum. However, AIME questions are often quite rich and have many possible alternate solutions, which also should also be studied for effective contest preparation. The largest collection of alternate solutions are available on the AoPS web sites' AIME Problems and Solutions page at https://artofproblemsolving.com/wiki/index.php/AIME_Problems_and_Solutions

Codeforces

  • Custom test

This is the hard version of the problem. The only difference between the simple and hard versions is that in this version $$$u$$$ can take any possible value.

As is known, Omsk is the capital of Berland. Like any capital, Omsk has a well-developed metro system. The Omsk metro consists of a certain number of stations connected by tunnels, and between any two stations there is exactly one path that passes through each of the tunnels no more than once. In other words, the metro is a tree.

To develop the metro and attract residents, the following system is used in Omsk. Each station has its own weight $$$x \in \{-1, 1\}$$$. If the station has a weight of $$$-1$$$, then when the station is visited by an Omsk resident, a fee of $$$1$$$ burle is charged. If the weight of the station is $$$1$$$, then the Omsk resident is rewarded with $$$1$$$ burle.

Omsk Metro currently has only one station with number $$$1$$$ and weight $$$x = 1$$$. Every day, one of the following events occurs:

  • A new station with weight $$$x$$$ is added to the station with number $$$v_i$$$, and it is assigned a number that is one greater than the number of existing stations.
  • Alex, who lives in Omsk, wonders: is there a subsegment$$$\dagger$$$ (possibly empty) of the path between vertices $$$u$$$ and $$$v$$$ such that, by traveling along it, exactly $$$k$$$ burles can be earned (if $$$k < 0$$$, this means that $$$k$$$ burles will have to be spent on travel). In other words, Alex is interested in whether there is such a subsegment of the path that the sum of the weights of the vertices in it is equal to $$$k$$$. Note that the subsegment can be empty, and then the sum is equal to $$$0$$$.

You are a friend of Alex, so your task is to answer Alex's questions.

$$$\dagger$$$Subsegment — continuous sequence of elements.

The first line contains a single number $$$t$$$ ($$$1 \leq t \leq 10^4$$$) — the number of test cases.

The first line of each test case contains the number $$$n$$$ ($$$1 \leq n \leq 2 \cdot 10^5$$$) — the number of events.

Then there are $$$n$$$ lines describing the events. In the $$$i$$$-th line, one of the following options is possible:

  • First comes the symbol "+" (without quotes), then two numbers $$$v_i$$$ and $$$x_i$$$ ($$$x_i \in \{-1, 1\}$$$, it is also guaranteed that the vertex with number $$$v_i$$$ exists). In this case, a new station with weight $$$x_i$$$ is added to the station with number $$$v_i$$$.
  • First comes the symbol "?" (without quotes), and then three numbers $$$u_i$$$, $$$v_i$$$, and $$$k_i$$$ ($$$-n \le k_i \le n$$$). It is guaranteed that the vertices with numbers $$$u_i$$$ and $$$v_i$$$ exist. In this case, it is necessary to determine whether there is a subsegment (possibly empty) of the path between stations $$$u_i$$$ and $$$v_i$$$ with a sum of weights exactly equal to $$$k_i$$$.

It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.

For each of Alex's questions, output "Yes" (without quotes) if the subsegment described in the condition exists, otherwise output "No" (without quotes).

You can output the answer in any case (for example, the strings " yEs ", " yes ", " Yes " and " YES " will be recognized as a positive answer).

Explanation of the first sample.

The answer to the second question is "Yes" , because there is a path $$$1$$$.

In the fourth question, we can choose the $$$1$$$ path again.

In the fifth query, the answer is "Yes" , since there is a path $$$1-3$$$.

In the sixth query, we can choose an empty path because the sum of the weights on it is $$$0$$$.

It is not difficult to show that there are no paths satisfying the first and third queries.

TON

Approximate solution of the control problem of supplies with many intervals and concave cost functions

  • Control in Social Economic Systems
  • Published: 18 July 2008
  • Volume 69 , pages 1181–1187, ( 2008 )

Cite this article

  • A. V. Eremeev 1 ,
  • M. Ya. Kovalyov 2 &
  • P. M. Kuznetsov 3  

27 Accesses

2 Citations

Explore all metrics

The problem of searching for a cost-minimum plan of supplies of uniform products to one consumer is considered. The set of admissible intervals of the supply volume and concave cost functions of supplies within each interval are preassigned for each supplier. The totally polynomial ɛ -approximate algorithm for the given problem and the pseudopolynomial exact algorithm for its partial case are suggested.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price includes VAT (Russian Federation)

Instant access to the full article PDF.

Rent this article via DeepDyve

Institutional subscriptions

Similar content being viewed by others

art of problem solving aime 2021

Solving a Supply-Delivery Scheduling Problem with Constraint Programming

art of problem solving aime 2021

Integrated Supply Chain Management via Randomized Rounding

art of problem solving aime 2021

An Approach for Solving Fully Interval Production Planning Problems

Eremeev, A.V., Romanova, A.A., Servakh, V.V., and Chauhan, S.S., Approximate Solution of One Control Problem of Supplies, Diskret. Analiz Issl. Operats. , 2006, series 2, vol. 13, no. 1, pp. 27–39.

MathSciNet   Google Scholar  

Eremeev, A.V. and Kuznetsov, P.M., Approximate Solution of the Control Problem of Supplies with Many Inetrvals, Vestn. Omsk. Univ. , 2006, no. 3, pp. 26–28.

Chauhan, S.S., Eremeev, A.V., Romanova, A.A., Servakh, V.V., and Woeginger, G.J., Approximation of the Supply Scheduling Problem, Oper. Res. Lett. , 2005, vol. 33, no. 3, pp. 249–254.

Article   MATH   MathSciNet   Google Scholar  

Ng, C.T., Kovalyov, M.Y., and Cheng, T.C.E., An FPTAS for a Supply Scheduling Problem with Non-Monotone Cost Functions, Naval Res. Logist. , 2008.

Papadimitriu, H. and Steiglitz, K., Combinatorial Optimization: Algorithms and Complexity , New York: Prentice Hall, 1982. Translated under the title Kombinatornaya optimizatsiya. Algoritmy i slozhnost’ Moscow: Mir, 1985.

Google Scholar  

Tanaev, V.S., Kovalyov, M.Y., and Shafranskii, Ya.M., Teoriya raspisanii. Gruppovye tekhnologii (Scheduling Theory. Group Technologies), Minsk: ITK NAN Belarusi, 1998.

Kovalyov, M.Y., A Rounding Technique to Construct Approximation Algorithms for Knapsack and Partition Type Problems, Appl. Math. Comput. Sci. , 1996, no. 6, pp. 101–113.

Ibarra, O.H. and Kim, C.E., Fast Approximation Algorithms for the Knapsack and Sum of Subset Problems, J. ACM , 1975, vol. 22, no. 4, pp. 463–468.

Download references

Author information

Authors and affiliations.

Omsk Affiliated Institute of Mathematics, Siberian Branch, Russian Academy of Sciences, Omsk, Russia

A. V. Eremeev

Belarussian State University, Minsk, Belarus

M. Ya. Kovalyov

Omsk State University, Omsk, Russia

P. M. Kuznetsov

You can also search for this author in PubMed   Google Scholar

Additional information

Original Russian Text © A.V. Eremeev, M.Ya. Kovalyov, P.M. Kuznetsov, 2008, published in Avtomatika i Telemekhanika, 2008, No. 7, pp. 90–97.

This work was supported by the program INTAS, project no. 03-51-5501. Investigations of M.Ya. Kovalyov were performed in the framework of the State program of scientific investigations of Belorussia “Mathematical models.”

Rights and permissions

Reprints and permissions

About this article

Eremeev, A.V., Kovalyov, M.Y. & Kuznetsov, P.M. Approximate solution of the control problem of supplies with many intervals and concave cost functions. Autom Remote Control 69 , 1181–1187 (2008). https://doi.org/10.1134/S0005117908070096

Download citation

Received : 22 May 2007

Published : 18 July 2008

Issue Date : July 2008

DOI : https://doi.org/10.1134/S0005117908070096

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

PACS number

  • Find a journal
  • Publish with us
  • Track your research

2022 AIME I

2022 AIME I problems and solutions. The test was held on Tuesday, February 8, 2022. The first link contains the full set of test problems. The rest contain each individual problem and its solution.

  • Entire Test

AMC logo.png

Something appears to not have loaded correctly.

Click to refresh .

art of problem solving aime 2021

IMAGES

  1. Art of Problem Solving

    art of problem solving aime 2021

  2. Art of Problem Solving

    art of problem solving aime 2021

  3. Art of Problem Solving

    art of problem solving aime 2021

  4. Art of Problem Solving

    art of problem solving aime 2021

  5. Art of Problem Solving

    art of problem solving aime 2021

  6. Art of Problem Solving

    art of problem solving aime 2021

VIDEO

  1. art problem solve #shortvideo #respect #funny #respect #art

  2. Art of Problem Solving: 2012 AIME I #6

  3. art problem solution (ABC) #art #viral #viralvideo #respect #drawing #painting #settingtv

  4. AIME Live Problem Solving Session

  5. Art of Problem Solving: 2012 AIME I #11

  6. Art of Problem Solving: 2012 AIME I #3

COMMENTS

  1. 2021 AIME I

    2021 AIME I problems and solutions. The test was held on Wednesday, March 10, 2021. The first link contains the full set of test problems. The rest contain each individual problem and its solution. Entire Test.

  2. 2021 AIME II Problems

    2021 AIME II Problems. This is a 15-question, 3-hour examination. All answers are integers ranging from to , inclusive. Your score will be the number of correct answers; i.e., there is neither partial credit nor a penalty for wrong answers. No aids other than scratch paper, graph paper, ruler, compass, and protractor are permitted.

  3. PDF Polynomials in the AIME

    naman12 and freeman66 (March 4, 2021) Polynomials in the AIME §0Acknowledgements This was made for the Art of Problem Solving Community out there! We would like to thank Evan Chen for his evan.sty code. In addition, all problems in the handout were either copied from the Art of Problem Solving Wiki or made by ourselves.

  4. Art of Problem Solving

    Art of Problem Solving AoPS Online. Math texts, online ... 2021 AIME I Problems/Problem 10. Contents. 1 Problem; 2 Solution 1; 3 Solution 2 ... 6 See Also; Problem. Consider the sequence of positive rational numbers defined by and for , if for relatively prime positive integers and , then

  5. PDF MAA American Mathematics Competitions 38th Annual AOIME

    Teachers are encouraged to share copies of the problem booklet and official solutions with their students for educational purposes. All problems should be credited to the MAA AMC (for example, "2017 AMC 12 B, Problem #21"). The publication, reproduction, or communication of the competition's problems or solutions

  6. Art of Problem Solving

    Art of Problem Solving AoPS Online. Math texts, online classes, and more for students in grades 5-12. Visit AoPS Online ‚ Books ... 2021 AIME I Problems/Problem 5. Contents. 1 Problem; 2 Solution 1; 3 Solution 2; 4 Solution 3; 5 Solution 4 (Combining Solution 1 and Solution 3) 6 Solution 5; 7 Video Solution;

  7. Instructional Systems, Inc

    Art of Problem Solving Volume 2 If you have qualified for AIME, you have probably studied the more elementary AopS books fully, and can expect to get 4-6 or less with just these basics. If you want to score 7+ on the AIME, you will need to study the more advanced AoPS books listed above, as well as past AIME problems and solutions.

  8. Math Message Boards FAQ & Community Help

    Let . Then the desired product equals. Use newton sums to compute this; it becomes . But i did because skill issues. Also this solution is identical to one of the solutions to 2023 AIME II P8 in that thread. This post has been edited 1 time. Last edited by brainfertilzer, Feb 8, 2024, 10:05 AM. Z K Y.

  9. Problem

    The answer to the second question is "Yes", because there is a path 1 1. In the fourth question, we can choose the 1 1 path again. In the fifth query, the answer is "Yes", since there is a path 1 − 3 1 − 3. In the sixth query, we can choose an empty path because the sum of the weights on it is 0 0.

  10. [Avangard] Avangard Omsk are the 2021 Gagarin Cup Champions!

    Animals and Pets Anime Art Cars and Motor Vehicles Crafts and DIY Culture, Race, and Ethnicity Ethics and Philosophy Fashion Food and Drink History Hobbies Law Learning and Education Military Movies Music Place Podcasts and Streamers Politics Programming Reading, Writing, and Literature Religion and Spirituality Science Tabletop Games ...

  11. Art of Problem Solving

    Art of Problem Solving AoPS Online. Math texts, online classes, and more for students in grades 5-12. Visit AoPS Online ‚ Books ... 2021 AIME I Problems/Problem 4. Contents. 1 Problem; 2 Solution 1; 3 Solution 2; 4 Solution 3; 5 Video Solution; 6 Video Solution; 7 See Also; Problem. Find the number of ways ...

  12. Art of Problem Solving

    Art of Problem Solving AoPS Online. Math texts, online classes, and more for students in grades 5-12. Visit AoPS Online ‚ Books ... 2021 AIME II Answer Key. Return to 2021 AIME II (2021 AIME II Problems) 550; 336; 080; 330; 736; 454; 145; 049; 295; 335; 258; 047; 797; 592; 258;

  13. Review of the Up-to-Date Visual Support Research

    The use of visual support methods is recognized as an effective strategy for helping children and adults with develop­mental disabilities. In autism spectrum disorders visual methods aimed to work with the main difficulties reducing the quality of life: problems of communication, development of academic and social skills, problem behavior.

  14. Art of Problem Solving

    Solution 2. We can use the property that on the first equation. We get . Then, subtracting from both sides, we get , therefore . Substituting that into our first equation, we get . Squaring, reciprocating, and simplifying both sides, we get the quadratic . Solving for , we get and . Since the problem said that , .

  15. Approximate solution of the control problem of supplies with many

    The problem of searching for a cost-minimum plan of supplies of uniform products to one consumer is considered. The set of admissible intervals of the supply volume and concave cost functions of supplies within each interval are preassigned for each supplier. The totally polynomial ɛ-approximate algorithm for the given problem and the pseudopolynomial exact algorithm for its partial case are ...

  16. 2022 AIME I

    2022 AIME I problems and solutions. The test was held on Tuesday, February 8, 2022. The first link contains the full set of test problems. The rest contain each individual problem and its solution. Entire Test; Answer Key. Problem 1; Problem 2; Problem 3; Problem 4; Problem 5; Problem 6; Problem 7; Problem 8; Problem 9; Problem 10; Problem 11 ...

  17. 1991 AIME

    1991 AIME. 1991 AIME problems and solutions. The first link contains the full set of test problems. The rest contain each individual problem and its solution. Problems. Answer Key. Problem 1. Problem 2. Problem 3.