#include <bits/stdc++.h> using namespace std; int main() { int cmd; // 使用者指令 int total = 0; // 總金額 while(cin >> cmd) { if(cmd == 0) { // 結帳 cout << "Total: " << total << endl; break; } int choice; // 選擇的餐點編號 cin >> choice; if(cmd == 1) { // 套餐 if(choice == 1) { cout << "Medium Wac 4" << endl; total += 4; } else if(choice == 2) { cout << "WChicken Nugget 8" << endl; total += 8; } else if(choice == 3) { cout << "Geez Burger 7" << endl; total += 7; } else if(choice == 4) { cout << "ButtMilk Crispy Chicken 6" << endl; total += 6; } else if(choice == 5){ cout << "Plastic Toy 3" << endl; total += 3; } } else if(cmd == 2) { // 單點 if(choice == 1) { cout << "German Fries 2" << endl; total += 2; } else if(choice == 2) { cout << "Durian Slices 3" << endl; total += 3; } else if(choice == 3) { cout << "WcFurry 5" << endl; total += 5; } else if(choice == 4) { cout << "Chocolate Sunday 7" << endl; total += 7; } else if(choice == 5) { cout << "Plastic Toy 3" << endl; total += 3; } } } return 0; }