From 885a1b3efbd364b8fdbae1861cb7ede24320539d Mon Sep 17 00:00:00 2001 From: hehe Date: Sat, 25 Apr 2026 05:52:19 -0400 Subject: [PATCH] =?UTF-8?q?=E9=95=87=E4=B9=83=E5=A4=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 666/dog.cpp | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/666/dog.cpp b/666/dog.cpp index 88d2aa5..02e7dab 100644 --- a/666/dog.cpp +++ b/666/dog.cpp @@ -1,22 +1,15 @@ #include +#include using namespace std; - -void myswap(int &i,int &j){ - int x; - x=i; - i=j; - j=x; - } int main(){ + int zhang,li; + cin>>zhang>>li; - int a,b,c; - - cin>>a>>b; - - myswap(a,b); + int a=lcm(zhang,li); + + cout<<"张三和李四下次相遇是:"<