提交时间:2023-11-08 14:00:38
运行 ID: 109425
#include<bits/stdc++.h> using namespace std; double gcd(double x,double y) { if (x==y) return x; if (x>y) return gcd(x-y); if (x<y) return gcd(y-x); } int main() { double v1,v2,s,ac,b,v3,v4; cin>>s>>v1>>v2; v3=v1/gcd(v1,v2); v4=v2/gce(v1,v2); }