From 93626c1b65075e4a38b24f06e19f9d7ae0c9f025 Mon Sep 17 00:00:00 2001 From: JINXIAOYE <924084271@qq.com> Date: Sat, 9 Dec 2017 11:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=8A=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jin ye/robot.cpp | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 jin ye/robot.cpp diff --git a/jin ye/robot.cpp b/jin ye/robot.cpp new file mode 100644 index 0000000..335838e --- /dev/null +++ b/jin ye/robot.cpp @@ -0,0 +1,49 @@ +#include +using namespace std; + +int main() + +{ + double t=500; + for(int x=1;x<=9;x++) + for(int y=1;y<=9;y++) + for(int z=1;z<=9;z++) + { + + double v1=3*z-0.5*(2+x+z+0.5*y); + + double v2=3*z-0.5*(2+x+z+0.5*y+2*x); + + if(v2<=0) + cout<<"Testing robot:"<3*y) + cout<<"Testing robot:"<