Files
python/TangDou/XiTi/1418.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

20 lines
280 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
小红 a
小明 b
b-(a-b) = 1/3 * a ①
a+(a-b)= 3 * b-30 ②
b-a+b=1/3 *a => 2b=4/3a => 4b=8/3a ③
2a-b=3b-30 => 4b=2a+30 ④
8/3a=2a+30 => 8/3a-2a=30 =>8a-6a=90 => 2a=90 => a=45
带回 ③ b=30
小红45岁小明30岁
*/