結果

問題 No.8008 某マヨネーズの網目柄
ユーザー HAHAHA
提出日時 2015-02-05 12:27:40
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 435 bytes
コンパイル時間 718 ms
コンパイル使用メモリ 79,936 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 08:25:41
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<sstream>
#include<cstdio>
#include<cstring>
#include<string>
#include<vector>
#include<list>
#include<queue>
#include<utility>
#include<set>
#include<map>
#include<cctype>
#include<cmath>
#include<algorithm>
using namespace std;

typedef long long ll;

ll gcd(ll a, ll b) {
	if (b == 0) return abs(a);
	else return gcd(b, a % b);
}
int main(){
int a,b;
cin >> a >> b;
cout << (gcd(a,b)) << endl;
return 0;
}
0