抽象的题目就要抽象的答
2024-03-16 18:57:01
发布于:广东
7阅读
0回复
0点赞
#include <iostream>
#include <cstdio>
#define IHASA int
#define GIMMEH cin>>
#define ITS(x) =x
#define IMINYRLOOPNERFINYRTILBOTHSEAMTUXAN0(X) for(int i = 1; i <= X; i++)
#define R(a,b) a=b
#define SUM(a,b) a+b
#define BOTHSEAMBIGGEROFAN(a,b) int RLY=a>b
#define PRODUKT(a,b) a*b
#define ORLY if(RLY)
#define VISIBLE(x) printf("%.5lf",x)
#define SMOOTHQUOSHUNT(a,b) a*1.0/b
#define KTHXBYE return 0;
using namespace std;
int main(){
IHASA TUX;
GIMMEH TUX;
IHASA FOO ITS(0);
IHASA BAR ITS(0);
IHASA BAZ ITS(0);
IHASA QUZ ITS(1);
//TUX IS NOW A NUMBER;
IMINYRLOOPNERFINYRTILBOTHSEAMTUXAN0(TUX){
IHASA PUR;
GIMMEH PUR;
//PUR IS NOW A NUMBR;
R(FOO, SUM(FOO, PUR));
R(BAR, SUM(BAR, 1));
BOTHSEAMBIGGEROFAN(PRODUKT(FOO, QUZ), PRODUKT(BAZ,BAR));
ORLY{
R(BAZ, FOO);
R(QUZ, BAR);
}//OIC;
}//IM OUTTA YOUR LOOP;
//BAZ IS NOW A NUMBER
VISIBLE(SMOOTHQUOSHUNT(BAZ,QUZ));
KTHXBYE;
}
这里空空如也
有帮助,赞一个