結果
| 問題 | No.442 和と積 |
| コンテスト | |
| ユーザー |
gim
|
| 提出日時 | 2017-07-13 17:21:15 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 1,000 ms |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 77,464 KB |
| 最終ジャッジ日時 | 2025-12-04 00:22:34 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
A,B=map(int, raw_input().split())
s=A+B
p=A*B
def saidaikouyakusuu(a, b):
if a<b:
num=a
a=b
b=num
if a%b==0:
return b
else:
return saidaikouyakusuu(b, a%b)
print saidaikouyakusuu(s, p)
gim