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

23 lines
629 B
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

#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;
}