結果
| 問題 | No.442 和と積 |
| コンテスト | |
| ユーザー |
gim
|
| 提出日時 | 2017-07-13 17:21:15 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 1,000 ms |
| + 866µs | |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 81,196 KB |
| 実行使用メモリ | 81,408 KB |
| 最終ジャッジ日時 | 2026-07-18 15:22:40 |
| 合計ジャッジ時間 | 2,655 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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