3925 - 啤酒和饮料
啤酒每罐2.3元,饮料每罐1.9元。
小明买了若干啤酒和饮料,一共花了82.3元。
我们还知道他买的啤酒比饮料的数量少,请你计算他买了几罐啤酒。
Input
无输入
Output
输出一个整数,表示啤酒的数目。
Examples
Input
Output
Solution C
#include<stdio.h> int main() { printf("11\n"); }
Solution C++
#include <iostream> using namespace std; int main() { int x,y; for(x=1;x<=823/23;x++) for(y=x+1;y<=823/19;y++) { if(23*x+19*y==823) cout<<x; } return 0; }