delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,30 @@
#include<iostream>
#include<string>
#include<math.h>
using namespace std;
bool isop(string n)
{
if(n=="+") return 1;
if(n=="-") return 1;
if(n=="*") return 1;
if(n=="/") return 1;
return 0;
}
double operation()
{
string sr;
cin>>sr;
if(!isop(sr)) return atof(sr.c_str());
switch(sr[0])
{
case '+': return operation()+operation();
case '-': return operation()-operation();
case '*': return operation()*operation();
case '/': return operation()/operation();
}
}
int main()
{
printf("%.6lf\n",operation());
return 0;
}