結果

問題 No.442 和と積
ユーザー srup٩(๑`н´๑)۶
提出日時 2016-11-14 21:11:38
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-07-04 22:40:14
合計ジャッジ時間 1,217 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

def gcd(x, y):
	while y > 0:
		tmp = x;
		x = y
		y = tmp % y
  	return x

a, b = map(int, raw_input().split())
print(gcd(a + b, a * b))
0