Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
143729 陈家宝 地盘划分 C++ 通过 100 6 MS 256 KB 174 2024-04-18 13:15:16

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int ans=1,a,b; int main(){ cin>>a>>b; while(a!=b){ if(a>b)a-=b; else b-=a; ans++; } cout<<ans; return 0; }


测评信息: