Files
python/TangDou/XiTi/1248.cpp

23 lines
629 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
/*
交了160元代价券和200元现金,得到100元代价券,即实付60元代价券和200元现金。
五个人去吃饭,实行AA制,就是平均分担费用,所以每人应付12元代价券和40元现金。
40元现金相当于60元代价券。12元代价券相当于8元现金。甲、丙、丁、戊每人应付现金48元,乙应付现金8元。
*/
/*
60 / 5 = 12 交12元代金卷
200 / 5 = 40 交40元钱
12/1.5 = 8元 
4*8=32 元
40-32=8元
*/
return 0;
}