From 887107168dc786597a8d7fadc663bc2f4885ec3d Mon Sep 17 00:00:00 2001 From: haoxuan Date: Sat, 28 Feb 2026 05:06:10 -0500 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=E3=80=8C0228=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 长方形的可能性 --- 0228/164.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 0228/164.cpp diff --git a/0228/164.cpp b/0228/164.cpp new file mode 100644 index 0000000..04e28fb --- /dev/null +++ b/0228/164.cpp @@ -0,0 +1,14 @@ +#include +using namespace std; +int main(){ + int x=0,area; + cout<<"请输入一个整数"<<" "; + cin>>area; + for(int i=1;i*i<=area;i++){ + if(area%i==0) + x=x+1; + } + cout<<"有"<