[CODE]#include <iostream>
using namespace std;
#define n 27
int main(){
int buy = 0,drink = 0,curr = 0;
while (drink < 27){
++buy;
++drink;
++curr;
if (curr == 3){
++drink;
curr = 1;
}
}
cout << "buy : " << buy << endl;
system("pause");
}[/CODE]
19
using namespace std;
#define n 27
int main(){
int buy = 0,drink = 0,curr = 0;
while (drink < 27){
++buy;
++drink;
++curr;
if (curr == 3){
++drink;
curr = 1;
}
}
cout << "buy : " << buy << endl;
system("pause");
}[/CODE]
19
Fight to win or die...