tuoran @ 2024-10-20 17:26:00
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
for(int i = min(a,b);i > 0;i--){
if(a % i == 0 && b % i == 0){
cout << i << endl;
return 0;
}
}
}
by Teristian @ 2024-12-01 14:51:07
和你写的一模一样,也是两个TLE......