Here is the link to the contest.
A. Photo Shoot
What do we all say together when Dagim is about to take our picture?
A2SV
print("A2SV")
B. Is It Special?
What day is special for the Contest Squad?
Saturday
T = int(input())
for _ in range(T):
day = input()
if day == "Sat":
print("Yes")
else:
print("No")
C. The Graph of G5
In every node input add 'G5' as a prefix.
$$$u$$$ and $$$v$$$ are strongly connected if group G5$$$u$$$ is in the same campus as G5$$$v$$$.
AAiT: $$$1$$$, $$$2$$$, $$$3$$$ and $$$4$$$ are strongly connected.
AASTU: $$$5$$$, $$$6$$$ and $$$7$$$ are strongly connected.
ASTU: $$$8$$$ and $$$9$$$ are strongly connected.
Q = int(input())
for _ in range(Q):
u, v = map(int, input().split())
if (u < 5 and v < 5) or (5 <= u <= 7 and 5 <= v <= 7) or (8 <= u <= 9 and 8 <= v <= 9):
print("Yes")
else:
print("No")
D. Converter Machine
In the problem statement, what is the word written in bold? — convert
The input is from $$$1$$$ up to $$$12$$$.
The problem asks which months we have converts in A2SV. These are February and July, which are the $$$2^{nd}$$$ and $$$7^{th}$$$ months.
T = int(input())
for _ in range(T):
m = int(input())
if m == 2 or m == 7:
print("Yes")
else:
print("No")
E. Mathematical Problems
I strongly believe that those who solve these problems deserve a prize.
Dawit, mentioned in the problem, is Dawit Addise, Ethiopia Finance Manager at A2SV. One of his responsibilities is allocating the prize money for the contests.
E1. Mathematical Problems (Easy Version)
The problem asks the amount of contest prize money you will get when you are ranked $$$x$$$-th in your group.
T = int(input())
for _ in range(T):
x = int(input())
total = 0
prizes = [400, 300, 200, 150, 100]
if x <= 5:
total += prizes[x - 1]
print(total)
E2. Mathematical Problems (Hard Version)
The problem asks the amount of contest prize money you will get when you are ranked $$$x$$$-th in your group and $$$y$$$-th among all groups.
T = int(input())
for _ in range(T):
x, y = map(int, input().split())
total = 0
prizes = [400, 300, 200, 150, 100]
if x <= 5:
total += prizes[x - 1]
if y <= 5:
total += prizes[y - 1]
print(total)
F. Excused Mathematicians
If you find the problem too difficult, you can give a heads up.
How do most heads-ups start in A2SV?
If you write anything that starts with "Hey Team," your solution is accepted.
print("Hey Team,\nI'd love to solve the problem, but I've already used up my yearly supply of smart thoughts.\nThank you for your understanding!")
G. A2SV Graph
The same graph can be represented in different forms while remaining structurally identical.
For 'A', it's already given in the example. The rest of the characters don’t have any branches or cycles as graphs. '2' and 'S' have two main turns, so we need at least $$$4$$$ nodes. 'V' has only one turn, so we need at least $$$3$$$ nodes. Hence, for '2', 'S', and 'V', any connected graph with no branches or cycles (bus graph) is accepted as a solution. However, the number of nodes should be at least $$$4$$$ for '2' and 'S' and at least $$$3$$$ for 'V'.
Possible solutions for 'A':
Possible solutions for '2':
Possible solutions for 'S':
Possible solutions for 'V':
ch = input()
if ch == 'A':
print("5 5\n5 2\n3 1\n4 2\n1 4\n1 2")
else:
print("4 3\n1 4\n3 2\n2 1")
H. Guessing Games
The resource is found in the 'About Contest' section (to the right of the problem statement).
Click the A2SV image or 'Contest website'. You will be redirected to https://a2sv.org/
H1. Guessing Games (Easy Version)
- 'I' stands for 'In-person students' = $$$690$$$
- 'R' stands for 'Remote students' = $$$200$$$
- 'D' stands for 'Digital projects' = $$$13$$$
- 'O' stands for 'Offers' = $$$63$$$
- 'J' stands for 'Jobs created' = $$$180$$$
- 'C' stands for 'Countries reached' = $$$20$$$
c = input()
if c == 'I':
print("690")
elif c == 'R':
print("200")
elif c == 'D':
print("13")
elif c == 'O':
print("63")
elif c == 'J':
print("180")
elif c == 'C':
print("20")
The numbers are A2SV generation numbers.
H2. Guessing Games (Hard Version)
The problem asks for the number of students in each generation. For that, you can use the resource (https://a2sv.org/). Go to https://a2sv.org/ -> Teams -> Groups. Counting students is what makes the problem hard :). Counting G4 and G5 is the hardest, and I already did that for you (given in the example).
n = input()
if n == "1":
print("21")
elif n == "2":
print("30")
elif n == "3":
print("101")
elif n == "4":
print("198")
elif n == "5":
print("307")
I. The Final Challenge
Quote of the day.
We don't just say "Quote of the day", we say the quote of the day.
Print the quote of the day. The quote has to be the quote posted on the contest day (November 8, 2024) in the 'A2SV Group 5' Telegram group in 'Quote of the day' topic. It’s accepted whether you add punctuation or not, include the source of the quote at the end or not, as long as you haven’t misspelled the main quote.
print("It is the mark of an educated mind to be able to entertain a thought without accepting it.")
# print("'IT IS THE MARK OF AN EDUCATED\nMIND TO BE ABLE TO ENTERTAIN A\nTHOUGHT WITHOUT ACCEPTING IT.'\nARISTOTLE") # is also accepted.
# print("itisthemarkofaneducatedmindtobeabletoentertainathoughtwithoutacceptingit") # is also accepted