RE?蒟蒻求助!!

P1888 三角函数

```cpp #include<bits/stdc++.h> using namespace std; int main() { long long a,b,c,d,e,f; cin>>a>>b>>c; if(a>c){e=a;f=c;} if(a==c){e=a;f=c;} if(a<c){e=c;f=a;} d=e%f; while(d!=0) { e=f; f=d; d=e%f; } cout<<e<<"/"<<f; return 0; } ``` @[SfumatoCannon_](/space/show?uid=125429)
by KasuganoSora @ 2018-12-01 17:29:07


@[p_1526967984](/space/show?uid=128276) ```cpp cout<<f<<"/"<<e; ``` 试试看
by SfumatoCannon_ @ 2018-12-01 17:31:26


上一页 |