You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
629 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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