結果

問題 No.442 和と積
ユーザー okayunonaha
提出日時 2016-11-11 23:37:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-25 09:40:14
合計ジャッジ時間 1,563 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

def gcd(x, y):
  if x < y:
    tmp = x
    x = y
    y = tmp
    while True:
      if y == 0:
        break
      x = x % y
      tmp = x
      x = y
      y = tmp
      
  return x

a,b = map(int, input().split())

c = gcd(a+b, a*b)
print(c)
0