Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
105224 方文轩 地盘划分 C++ 通过 100 7 MS 256 KB 209 2023-10-05 16:07:54

Tests(10/10):


#include<iostream> using namespace std; int s(int a,int b) { if(a==b) return 1; if(a>b) return 1+s(a-b,b); if(a<b) return 1+s(a,b-a); } int main() { int a,b; cin>>a>>b; cout<<s(a,b)<<endl; }


测评信息: