yukicoder contest 262 entry record

yukicoder contest 262 entry record

When I overslept and participated about 40 minutes late, the judges just stopped, there were a lot of Clars, the D problem went wrong, and it was a terrible time (laugh).

A 1175 Simultaneous Equations

It's usually junior high school mathematics, so it's like pulling the coefficients together and erasing x or y.

a, b, c, d, e, f = map(int, input().split())

y = (c - f * a / d) / (b - e * a / d)
x = c / a - (b / a) * y
print(x, y)

B 1176 Few Questions

I think it's best to have a bottom of 2, but I can easily think of someone who doesn't, such as A = 9. However, I intuitively think that there aren't many bottoms to consider, so it's appropriate. Try a small number AC.

from math import ceil, log

A = int(input())

result = float('inf')
for i in range(2, 100):
    result = min(result, i * ceil(log(A, i)))
print(result)

C 1177 What's the remainder?

Unsolvable. Difficulty fraud. Changed from ★ 1.5 to ★ 2.5.

D 1178 Can you draw a Circle?

I couldn't solve it. I said that the formula always forms a circle (radius is a positive number), but I wondered if a and b were different and it was an ellipse.

E 1179 Quadratic Equation

The formula for solving the quadratic equation is junior high school mathematics, so it feels like you just solve it exactly.

a, b, c = map(int, input().split())

t = b * b - 4 * a * c
if t < 0:
    print('imaginary')
elif t == 0:
    print(-b / (2 * a))
else:
    t = t ** 0.5
    result = [(-b - t) / (2 * a), (-b + t) / (2 * a)]
    result.sort()
    print(*result)

Recommended Posts

yukicoder contest 256 entry record
yukicoder contest 267 entry record
yukicoder contest 264 entry record
yukicoder contest 245 entry record
yukicoder contest 250 entry record
yukicoder contest 262 entry record
yukicoder contest 266 Participation record
yukicoder contest 263 Participation record
yukicoder contest 243 Participation record
yukicoder contest 273 Participation record
yukicoder contest 252 Participation record
yukicoder contest 259 Participation record
yukicoder contest 249 Participation record
yukicoder contest 242 Participation record
yukicoder contest 241 Participation record
yukicoder contest 277 Participation record
yukicoder contest 257 Participation record
yukicoder contest 246 Participation record
yukicoder contest 275 Participation record
yukicoder contest 274 Participation record
yukicoder contest 247 Participation record
yukicoder contest 261 Participation record
yukicoder contest 278 Participation record
yukicoder contest 248 Participation record
yukicoder contest 270 (mathematics contest) Participation record
yukicoder contest 272 (Weird math contest) Participation record
yukicoder contest 259 Review
yukicoder contest 261 Review
yukicoder contest 267 Review
yukicoder contest 266 Review
yukicoder contest 263 Review
yukicoder contest 268 Review
AtCoder Beginner Contest 175 Virtual entry