#21789: 超棒做法


kentsai1688@gmail.com (Ken Tsai)

學校 : 國立科學工業園區實驗高級中學
編號 : 99014
來源 : [118.163.197.175]
最後登入時間 :
2020-07-19 18:20:13

algorithm中有函數

__gcd(a, b)

 

#22390: Re:超棒做法


Eric7654321 (Dr. Kiwi)

學校 : 臺北市立建國高級中學
編號 : 80917
來源 : [140.113.122.19]
最後登入時間 :
2025-05-14 21:47:22

algorithm中有函數

__gcd(a, b)

 

#include<iostream>

#include<algorithm> 

 

using namespace std;

 

int main(){

int a=0,b=0;

    cin>>a>>b;

    cout<<__gcd(a, b);

return 0;

}

 

幹這個厲害