long time no see. I was so busy with over 100 pages of chemistry homework and math tasks that I couldn't get enough time for a professional competition. I went to ABC for the first time in a long time, but the result was a disastrous defeat. Thank you so much. It was a complete AB.
** Thoughts ** Just do
a = int(input())
print(a+a**2+a**3)
** Thoughts ** I misread it as a good thing to rearrange the character strings and lost time. Just check in order from the front
s = input()
t = input()
ans = 0
for i in range(len(s)):
if s[i] != t[i]:
ans += 1
print(ans)
** Thoughts ** It seems to be solved with DP. knapsack-I thought it could be solved if I paid attention to the memory like DP.
** Thoughts ** I don't know how to quickly enumerate the number of divisors. I didn't know how to reduce from $ O (N \ sqrt N) $.
Even if I haven't done it for a while, the decline is noticeable and I am surprised myself. Now that the assignments have been completed, I will do my best.
Recommended Posts