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
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'.
ch = input()
if ch == 'A':
print("5 5\n5 2\n3 1\n4 2\n1 4\n1 2")
elif ch == '2':
print("4 3\n1 4\n3 2\n2 1")
elif ch == 'S':
print("6 5\n5 2\n2 6\n1 5\n4 6\n3 1")
elif ch == 'V':
print("3 2\n1 2\n2 3")
H. Guessing Games
The resource is found in the 'About Contest' section (to the right of the problem statement).
Click the A2SV image. 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$$$
- 'P' stands for 'Placements at top tech companies' = $$$63$$$
- 'J' stands for 'Jobs created by A2SV' = $$$180$$$
- 'C' stands for 'Countries reach' = $$$20$$$
c = input()
if c == 'I':
print("690")
elif c == 'R':
print("200")
elif c == 'D':
print("13")
elif c == 'P':
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 (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.
Print the quote of the day. The quote has to be the last quote found in the 'A2SV Group 5' Telegram group in 'Quote of the day' topic at the time of the contest.
print("A man sees in the world what he carries in his heart.")