結果

問題 No.442 和と積
ユーザー Pachicobue
提出日時 2017-12-31 06:17:02
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 830 ms
コンパイル使用メモリ 70,880 KB
最終ジャッジ日時 2025-01-05 06:48:27
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <iostream>
#include <numeric>
using namespace std;
using ll = long long;
int main()
{
ll A,B;
cin >> A >> B;
const ll C = A+B;
cout << lcm(gcd(A,C),gcd(B,C)) << endl;
return 0;
}
0