Комментарии
На pitfall → Codeforces Round #388 (Div. 2), 10 лет назад
0

Similar solution

На kefaa → Codeforces Round #384 (Div.2) , 10 лет назад
0

Damn Egyptian Fractions! Div 2C

На Wild_Hamster → Codeforces #308 (Div. 2) Editorial , 11 лет назад
0

answer for 3 105 should be YES or NO?

На Wild_Hamster → Codeforces #308 (Div. 2) Editorial , 11 лет назад
0

it has to do with pow() returning a double type value. even i got a WA verdict due to this

На Wild_Hamster → Codeforces #308 (Div. 2) Editorial , 11 лет назад
0

In Problem C, was it necessary that all weights that can be add on either side should be from w^0,w^1, w^2 and so on. What I mean to say, for ex w=3, m=105 is possible: 81 + 27 on one pan and 105 + 3 on other pan. Can it be one of valid test cases or i misinterpreted the question?