結果

問題 No.1423 Triangle of Multiples
ユーザー Revan QasimzadeRevan Qasimzade
提出日時 2021-03-12 22:00:18
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 644 bytes
コンパイル時間 1,739 ms
コンパイル使用メモリ 161,536 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-22 12:56:38
合計ジャッジ時間 2,190 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 31 ms
5,376 KB
testcase_03 AC 16 ms
5,376 KB
testcase_04 AC 16 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pb push_back
#define fixx(n) fixed << setprecision(n)
#define F first
#define S second
#define PI  3.14159265358979323846
#define ll  long long int
#define int ll
#define double long double
const int mod = 1e9 + 7;
const int modd = 998244353;
const int N = 1e5;


signed main()
{

    FAST;
    int t;
    cin >> t;
    while(t --) {
        int a, b, c;
        cin >> a >> b >> c;
        a = a * b/ __gcd(a , b);
        a = a * c / __gcd(a, c);
        cout << a << ' ' << a << ' ' <<  a << '\n';
    }
    return 0;
}
0