From 78c5fe402c1b8af9ffcf59279143c9c151453558 Mon Sep 17 00:00:00 2001 From: ljcjames Date: Sat, 13 Aug 2022 14:23:40 +0800 Subject: [PATCH] =?UTF-8?q?8.13=C3=89=C3=8F=C3=8E=C3=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 8.13/E-VasyaTriangle/E-VasyaTriangle2.cpp | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 8.13/E-VasyaTriangle/E-VasyaTriangle2.cpp diff --git a/8.13/E-VasyaTriangle/E-VasyaTriangle2.cpp b/8.13/E-VasyaTriangle/E-VasyaTriangle2.cpp new file mode 100644 index 0000000..74e283d --- /dev/null +++ b/8.13/E-VasyaTriangle/E-VasyaTriangle2.cpp @@ -0,0 +1,46 @@ +#include +#include +#include +#include +using namespace std; +int n,m,k; +int s,d,x; + +int baoli() +{ + int len=sqrt(s); + for(int i=1;i<=len;i++) + { + if(s%i==0) + { + if(x>=i&&d>=s/i) + { + return i; + } + } + } + return 0; +} +int main() +{ + scanf("%d%d%d",&n,&m,&k); + s=n*m/k*2; + d=m>n? m:n,x=m0) + { + if(x==n)printf("YES\n0 0\n%d 0\n0 %d",i,s/i); + else printf("YES\n0 0\n%d 0\n0 %d",s/i,i); + } + else + { + printf("NO"); + } + return 0; +}