結果

問題 No.442 和と積
ユーザー ixmelixmel
提出日時 2017-04-11 20:57:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-09-25 11:17:12
合計ジャッジ時間 1,478 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,844 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 15 ms
7,948 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,784 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
7,768 KB
testcase_10 WA -
testcase_11 AC 15 ms
7,788 KB
testcase_12 AC 16 ms
7,984 KB
testcase_13 AC 15 ms
7,908 KB
testcase_14 AC 16 ms
7,864 KB
testcase_15 AC 16 ms
7,908 KB
testcase_16 AC 15 ms
7,980 KB
testcase_17 AC 15 ms
7,852 KB
testcase_18 WA -
testcase_19 AC 16 ms
7,820 KB
testcase_20 AC 16 ms
7,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def gcd(a,b):
	a,b=max(a,b),min(a,b)
	while a%b:
		a,b=b,a%b
	return b

a,b=map(int,input().split())
print(gcd(a,b))
0