diff --git a/95509/main.cpp b/95509/main.cpp new file mode 100644 index 0000000..4de8352 --- /dev/null +++ b/95509/main.cpp @@ -0,0 +1,20 @@ +#include +using namespace std; + +int main() { + int km,total,up,down,money,min; + total=20; + cin>>km>>up>>down>>money>>min; + if(km>2) + total+=5*(km-2); + total+=5*(min/2); + if(up<18) + up=18; + money=185+(up-18)*10; + for(int i=up;i